mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-11-01 09:09:51 +00:00
Fixing broken interactions dialog.
This commit is contained in:
parent
522d184880
commit
fbfc88bab5
3 changed files with 7 additions and 17 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -21,7 +21,6 @@
|
|||
int interactionsPage;
|
||||
}
|
||||
|
||||
@property (nonatomic) NewsBlurAppDelegate *appDelegate;
|
||||
@property (nonatomic, strong) UITableView *interactionsTable;
|
||||
@property (nonatomic) NSArray *interactionsArray;
|
||||
|
||||
|
|
|
|||
|
|
@ -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];
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue