diff --git a/RSSRead/RecommendFeedList.plist b/RSSRead/RecommendFeedList.plist index e5d32fa..3c955c9 100644 --- a/RSSRead/RecommendFeedList.plist +++ b/RSSRead/RecommendFeedList.plist @@ -14,13 +14,13 @@ title - dApps开发者 + 大洋24小时滚动新闻 link - http://www.dapps.net + http://www.dayoo.com/roll summary - 为手机应用APP开发、手机游戏开发,移动互联网、云计算、HTML5等开发者提供专业的资讯! + 大洋网是立足广州、辐射华南的综合性区域门户网站,为用户提供新闻、生活、论坛、书城等20多个频道及广州日报集团旗下《广州日报》《信息时报》等20家报刊杂志电子版 url - http://www.dapps.net/feed + http://rss.dayoo.com/feed/news/roll.xml title @@ -44,13 +44,13 @@ title - Solidot + 科技--华尔街日报 link - http://www.solidot.org + http://cn.wsj.com/gb/tech.asp summary - 奇客的资讯,重要的东西 + 《华尔街日报》中文版络版最新科技要闻 url - http://feeds2.feedburner.com/solidot + http://cn.wsj.com/gb/rsstech.xml title @@ -74,13 +74,13 @@ title - 爱范儿 · Beats of Bits + 新闻要闻-新浪新闻 link - http://www.ifanr.com + http://roll.news.sina.com.cn/s/ summary - 发现创新价值的科技媒体 + 新闻中心-新闻要闻 url - http://fulltextrssfeed.com/www.ifanr.com + http://rss.sina.com.cn/news/marquee/ddt.xml title @@ -94,13 +94,13 @@ title - 和邪社 + Mashable link - http://www.hexieshe.com/ + http://mashable.com/ summary - 你的ACG生活 文不在长.内涵则明 图不在色.意淫则灵 + Mashable is a leading source for news url - http://www.hexieshe.com/feed/ + http://feeds.mashable.com/Mashable \ No newline at end of file diff --git a/RSSRead/SMAddRSSViewController.m b/RSSRead/SMAddRSSViewController.m index 8ad69e4..f1110e4 100644 --- a/RSSRead/SMAddRSSViewController.m +++ b/RSSRead/SMAddRSSViewController.m @@ -34,6 +34,8 @@ @interface SMAddRSSViewController () SCREEN_WIDTH - 15) { + x = leftPadding; + y += btSize.height + topPadding; + } + + btKw.frame = CGRectMake(x, y, btSize.width, btSize.height); + btKw.tag = i; + [btKw addTarget:self action:@selector(keyWordClick:) forControlEvents:UIControlEventTouchUpInside]; + x += btSize.width + leftPadding; + + [_keywordsView addSubview:btKw]; + i++; + } _tableView =tableView; [self.view addSubview:tableView]; + [self.view addSubview:_keywordsView]; +} + +-(void)keyWordClick:(UIButton *)sender { + [self loadRssSourcesWithStr:_keyWords[sender.tag]]; + NSLog(@"come here"); } diff --git a/RSSRead/SMAppDelegate.m b/RSSRead/SMAppDelegate.m index 54165de..32f1bf4 100644 --- a/RSSRead/SMAppDelegate.m +++ b/RSSRead/SMAppDelegate.m @@ -96,10 +96,6 @@ - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:( UIRemoteNotificationTypeSound | UIRemoteNotificationTypeAlert)]; [APService setupWithOption:launchOptions]; - //模糊图片写入沙盒 -// [SMBlurBackground SMRSSbackgroundImage:nil]; - - return YES; } @@ -199,7 +195,7 @@ - (NSPersistentStoreCoordinator *)persistentStoreCoordinator { NSURL *storeUrl = [NSURL fileURLWithPath: [[self applicationDocumentsDirectory] stringByAppendingPathComponent: @"RSS.sqlite"]]; NSError *error = nil; - //下面的options能够解决每次修改coredata数据结构的不删除app就crash的问题。 + //下面的options能够解决每次修改coredata数据结构的不删除app就crash的问题。要注意,改变coredata数据结构时需要添加一个新版本xcdatamodeldz,具体操作可以查看项目wiki NSDictionary *options = [NSDictionary dictionaryWithObjectsAndKeys: [NSNumber numberWithBool:YES], NSMigratePersistentStoresAutomaticallyOption, [NSNumber numberWithBool:YES], NSInferMappingModelAutomaticallyOption, nil]; @@ -209,7 +205,6 @@ - (NSPersistentStoreCoordinator *)persistentStoreCoordinator { configuration:nil URL:storeUrl options:options error:&error]) { /*Error for store creation should be handled in here*/ } - return _persistentStoreCoordinator; } diff --git a/RSSRead/SMRSSListCell.m b/RSSRead/SMRSSListCell.m index 6304a94..34f87db 100644 --- a/RSSRead/SMRSSListCell.m +++ b/RSSRead/SMRSSListCell.m @@ -81,7 +81,6 @@ -(void)setRss:(RSS *)rss { } else { _lbTitle.textColor = [SMUIKitHelper colorWithHexString:_darkcolor]; } - rss.summary = [rss.summary stringByReplacingOccurrencesOfString:@" " withString:@""]; [_lbSummary setText:[rss.summary stringByConvertingHTMLToPlainText]]; [self setNeedsDisplay]; }