mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-09-18 21:50:56 +00:00
testing out follow popular
This commit is contained in:
parent
221dc7eab0
commit
417ef5011b
3 changed files with 12 additions and 4 deletions
|
@ -23,7 +23,6 @@
|
|||
- (IBAction)tapPopularButton:(id)sender;
|
||||
|
||||
- (void)finishAddSite:(ASIHTTPRequest *)request;
|
||||
- (void)finishAddPopular:(ASIHTTPRequest *)request;
|
||||
- (void)requestFailed:(ASIHTTPRequest *)request;
|
||||
- (void)addSite:(NSString *)siteUrl;
|
||||
- (void)addPopular;
|
||||
|
|
|
@ -7,6 +7,7 @@
|
|||
//
|
||||
|
||||
#import "FirstTimeUserAddNewsBlurViewController.h"
|
||||
#import "NewsBlurViewController.h"
|
||||
|
||||
@implementation FirstTimeUserAddNewsBlurViewController
|
||||
|
||||
|
@ -141,7 +142,15 @@
|
|||
}
|
||||
|
||||
- (void)finishAddSite:(ASIHTTPRequest *)request {
|
||||
NSLog(@"request: %@", request);
|
||||
NSString *responseString = [request responseString];
|
||||
NSData *responseData=[responseString dataUsingEncoding:NSUTF8StringEncoding];
|
||||
NSError *error;
|
||||
NSDictionary *results = [NSJSONSerialization
|
||||
JSONObjectWithData:responseData
|
||||
options:kNilOptions
|
||||
error:&error];
|
||||
NSLog(@"results are %@", results);
|
||||
[appDelegate.feedsViewController fetchFeedList:NO];
|
||||
}
|
||||
|
||||
@end
|
||||
|
|
|
@ -15,8 +15,8 @@
|
|||
// #define BACKGROUND_REFRESH_SECONDS -5
|
||||
#define BACKGROUND_REFRESH_SECONDS -10*60
|
||||
|
||||
#define NEWSBLUR_URL [NSString stringWithFormat:@"nb.local.com"]
|
||||
// #define NEWSBLUR_URL [NSString stringWithFormat:@"www.newsblur.com"]
|
||||
// #define NEWSBLUR_URL [NSString stringWithFormat:@"nb.local.com"]
|
||||
#define NEWSBLUR_URL [NSString stringWithFormat:@"www.newsblur.com"]
|
||||
|
||||
#define NEWSBLUR_LINK_COLOR 0x405BA8
|
||||
#define NEWSBLUR_HIGHLIGHT_COLOR 0xd2e6fd
|
||||
|
|
Loading…
Add table
Reference in a new issue