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"
|
2020-08-27 21:26:12 -07:00
|
|
|
#import "NewsBlur-Swift.h"
|
2012-06-21 11:53:48 -07:00
|
|
|
|
2017-03-10 09:16:03 -08:00
|
|
|
@interface ShareViewController : BaseViewController <UITextViewDelegate> {
|
2012-07-30 14:58:57 -07:00
|
|
|
NSString *activeReplyId;
|
2012-06-21 11:53:48 -07:00
|
|
|
}
|
|
|
|
|
2012-07-30 14:58:57 -07:00
|
|
|
@property (nonatomic) IBOutlet UITextView *commentField;
|
2012-07-15 15:06:06 -07:00
|
|
|
@property (nonatomic) IBOutlet NewsBlurAppDelegate *appDelegate;
|
2012-07-30 14:58:57 -07:00
|
|
|
@property (nonatomic) IBOutlet UIButton *facebookButton;
|
|
|
|
@property (nonatomic) IBOutlet UIButton *twitterButton;
|
|
|
|
@property (nonatomic) IBOutlet UIBarButtonItem *submitButton;
|
2013-03-02 19:15:08 -08:00
|
|
|
@property (nonatomic) IBOutlet UILabel *storyTitle;
|
2012-07-30 14:58:57 -07:00
|
|
|
@property (nonatomic) NSString * activeReplyId;
|
2013-09-23 15:07:25 -07:00
|
|
|
@property (nonatomic) NSString * activeCommentId;
|
2013-09-25 12:05:17 -07:00
|
|
|
@property (nonatomic) NSString * activeStoryId;
|
2012-08-13 23:54:10 -07:00
|
|
|
@property (nonatomic) NSString* currentType;
|
2013-03-02 19:15:08 -08:00
|
|
|
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *keyboardHeight;
|
2012-06-21 11:53:48 -07:00
|
|
|
|
2013-03-02 21:27:29 -08:00
|
|
|
- (void)setCommentType:(NSString *)type;
|
2012-07-30 14:58:57 -07:00
|
|
|
- (void)setSiteInfo:(NSString *)type setUserId:(NSString *)userId setUsername:(NSString *)username setReplyId:(NSString *)commentIndex;
|
2012-06-27 15:24:18 -07:00
|
|
|
- (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;
|
2012-07-30 14:58:57 -07:00
|
|
|
- (void)replaceStory:(NSDictionary *)newStory withReplyId:(NSString *)replyId;
|
2013-03-05 09:25:42 -08:00
|
|
|
- (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-22 22:57:17 -07:00
|
|
|
|
2012-06-21 11:53:48 -07:00
|
|
|
@end
|