NewsBlur/clients/ios/Classes/ShareViewController.h

42 lines
1.5 KiB
C
Raw Normal View History

2012-06-21 11:53:48 -07:00
//
// ShareViewController.h
// NewsBlur
//
// Created by Roy Yang on 6/21/12.
// Copyright (c) 2012 NewsBlur. All rights reserved.
//
#import <UIKit/UIKit.h>
2012-06-22 11:52:10 -07:00
#import "NewsBlurAppDelegate.h"
#import "NewsBlur-Swift.h"
2012-06-21 11:53:48 -07:00
2017-03-10 09:16:03 -08:00
@interface ShareViewController : BaseViewController <UITextViewDelegate> {
NSString *activeReplyId;
2012-06-21 11:53:48 -07:00
}
@property (nonatomic) IBOutlet UITextView *commentField;
2012-07-15 15:06:06 -07:00
@property (nonatomic) IBOutlet NewsBlurAppDelegate *appDelegate;
@property (nonatomic) IBOutlet UIButton *facebookButton;
@property (nonatomic) IBOutlet UIButton *twitterButton;
@property (nonatomic) IBOutlet UIBarButtonItem *submitButton;
@property (nonatomic) IBOutlet UILabel *storyTitle;
@property (nonatomic) NSString * activeReplyId;
@property (nonatomic) NSString * activeCommentId;
@property (nonatomic) NSString * activeStoryId;
2012-08-13 23:54:10 -07:00
@property (nonatomic) NSString* currentType;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *keyboardHeight;
2012-06-21 11:53:48 -07:00
- (void)setCommentType:(NSString *)type;
- (void)setSiteInfo:(NSString *)type setUserId:(NSString *)userId setUsername:(NSString *)username setReplyId:(NSString *)commentIndex;
- (void)clearComments;
2012-06-21 11:53:48 -07:00
- (IBAction)doCancelButton:(id)sender;
2012-06-22 11:52:10 -07:00
- (IBAction)doToggleButton:(id)sender;
- (IBAction)doShareThisStory:(id)sender;
2012-06-25 18:05:25 -07:00
- (IBAction)doReplyToComment:(id)sender;
- (void)replaceStory:(NSDictionary *)newStory withReplyId:(NSString *)replyId;
- (void)adjustShareButtons;
2014-11-12 11:25:06 -08:00
- (void)adjustCommentField:(CGSize)kbSize;
2012-07-25 20:38:44 -07:00
- (NSString *)stringByStrippingHTML:(NSString *)s;
2012-06-21 11:53:48 -07:00
@end