mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-08-05 16:58:59 +00:00
41 lines
1.5 KiB
Objective-C
41 lines
1.5 KiB
Objective-C
//
|
|
// ShareViewController.h
|
|
// NewsBlur
|
|
//
|
|
// Created by Roy Yang on 6/21/12.
|
|
// Copyright (c) 2012 NewsBlur. All rights reserved.
|
|
//
|
|
|
|
#import <UIKit/UIKit.h>
|
|
#import "NewsBlurAppDelegate.h"
|
|
#import "NewsBlur-Swift.h"
|
|
|
|
@interface ShareViewController : BaseViewController <UITextViewDelegate> {
|
|
NSString *activeReplyId;
|
|
}
|
|
|
|
@property (nonatomic) IBOutlet UITextView *commentField;
|
|
@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;
|
|
@property (nonatomic) NSString* currentType;
|
|
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *keyboardHeight;
|
|
|
|
- (void)setCommentType:(NSString *)type;
|
|
- (void)setSiteInfo:(NSString *)type setUserId:(NSString *)userId setUsername:(NSString *)username setReplyId:(NSString *)commentIndex;
|
|
- (void)clearComments;
|
|
- (IBAction)doCancelButton:(id)sender;
|
|
- (IBAction)doToggleButton:(id)sender;
|
|
- (IBAction)doShareThisStory:(id)sender;
|
|
- (IBAction)doReplyToComment:(id)sender;
|
|
- (void)replaceStory:(NSDictionary *)newStory withReplyId:(NSString *)replyId;
|
|
- (void)adjustShareButtons;
|
|
- (void)adjustCommentField:(CGSize)kbSize;
|
|
- (NSString *)stringByStrippingHTML:(NSString *)s;
|
|
|
|
@end
|