Fixing broken interactions dialog.

This commit is contained in:
Samuel Clay 2017-05-04 19:46:03 -07:00
parent 522d184880
commit fbfc88bab5
3 changed files with 7 additions and 17 deletions

View file

@ -25,13 +25,9 @@
#define MINIMUM_ACTIVITY_HEIGHT_IPAD 78
#define MINIMUM_ACTIVITY_HEIGHT_IPHONE 54
- (id)initWithFrame:(CGRect)frame
{
self = [super initWithFrame:frame];
if (self) {
self.appDelegate = (NewsBlurAppDelegate *)[[UIApplication sharedApplication] delegate];
}
return self;
- (void)awakeFromNib {
[super awakeFromNib];
self.appDelegate = (NewsBlurAppDelegate *)[[UIApplication sharedApplication] delegate];
}
- (void)layoutSubviews {

View file

@ -21,7 +21,6 @@
int interactionsPage;
}
@property (nonatomic) NewsBlurAppDelegate *appDelegate;
@property (nonatomic, strong) UITableView *interactionsTable;
@property (nonatomic) NSArray *interactionsArray;

View file

@ -19,20 +19,15 @@
@implementation InteractionsModule
@synthesize appDelegate;
@synthesize interactionsTable;
@synthesize interactionsArray;
@synthesize pageFetching;
@synthesize pageFinished;
@synthesize interactionsPage;
- (id)initWithFrame:(CGRect)frame
{
self = [super initWithFrame:frame];
if (self) {
appDelegate = (NewsBlurAppDelegate *)[[UIApplication sharedApplication] delegate];
}
return self;
- (void)awakeFromNib {
[super awakeFromNib];
appDelegate = (NewsBlurAppDelegate *)[[UIApplication sharedApplication] delegate];
}
- (void)layoutSubviews {
@ -97,7 +92,7 @@
NSString *urlString = [NSString stringWithFormat:@
"%@/social/interactions?user_id=%@&page=%i&limit=10"
"&category=follow&category=comment_reply&category=comment_like&category=reply_reply&category=story_reshare",
self.appDelegate.url,
appDelegate.url,
[appDelegate.dictSocialProfile objectForKey:@"user_id"],
page];