資源簡介
模仿網易新聞首頁效果代碼,實現界面上部的分類條滾動以及選擇

代碼片段和文件信息
//
//??AppDelegate.m
//??SlideView
//
//??Created?by?Chen?Yaoqiang?on?13-12-27.
//??Copyright?(c)?2013年?Chen?Yaoqiang.?All?rights?reserved.
//
#import?“AppDelegate.h“
#import?“SVGloble.h“
@implementation?AppDelegate
-?(BOOL)application:(UIApplication?*)application?didFinishLaunchingWithOptions:(NSDictionary?*)launchOptions
{
????self.window?=?[[UIWindow?alloc]?initWithframe:[[UIScreen?mainScreen]?bounds]];
????//?Override?point?for?customization?after?application?launch.
????self.window.backgroundColor?=?[UIColor?whiteColor];
????
????CGRect?screenRect?=?[[UIScreen?mainScreen]?bounds];
????[SVGloble?shareInstance].globleWidth?=?screenRect.size.width;?//屏幕寬度
????[SVGloble?shareInstance].globleHeight?=?screenRect.size.height-20;??//屏幕高度(無頂欄)
????[SVGloble?shareInstance].globleAllHeight?=?screenRect.size.height;??//屏幕高度(有頂欄)
????
????_viewController?=?[[TestViewController?alloc]?init];
????[self.window?setRootViewController:_viewController];
????
????[self.window?makeKeyAndVisible];
????return?YES;
}
-?(void)applicationWillResignActive:(UIApplication?*)application
{
????//?Sent?when?the?application?is?about?to?move?from?active?to?inactive?state.?This?can?occur?for?certain?types?of?temporary?interruptions?(such?as?an?incoming?phone?call?or?SMS?message)?or?when?the?user?quits?the?application?and?it?begins?the?transition?to?the?background?state.
????//?Use?this?method?to?pause?ongoing?tasks?disable?timers?and?throttle?down?OpenGL?ES?frame?rates.?Games?should?use?this?method?to?pause?the?game.
}
-?(void)applicationDidEnterBackground:(UIApplication?*)application
{
????//?Use?this?method?to?release?shared?resources?save?user?data?invalidate?timers?and?store?enough?application?state?information?to?restore?your?application?to?its?current?state?in?case?it?is?terminated?later.?
????//?If?your?application?supports?background?execution?this?method?is?called?instead?of?applicationWillTerminate:?when?the?user?quits.
}
-?(void)applicationWillEnterForeground:(UIApplication?*)application
{
????//?Called?as?part?of?the?transition?from?the?background?to?the?inactive?state;?here?you?can?undo?many?of?the?changes?made?on?entering?the?background.
}
-?(void)applicationDidBecomeActive:(UIApplication?*)application
{
????//?Restart?any?tasks?that?were?paused?(or?not?yet?started)?while?the?application?was?inactive.?If?the?application?was?previously?in?the?background?optionally?refresh?the?user?interface.
}
-?(void)applicationWillTerminate:(UIApplication?*)application
{
????//?Called?when?the?application?is?about?to?terminate.?Save?data?if?appropriate.?See?also?applicationDidEnterBackground:.
}
@end
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2014-02-21?22:43??SlideView-master\
?????文件????????6148??2014-02-21?22:43??SlideView-master\.DS_Store
?????目錄???????????0??2014-02-21?22:51??__MACOSX\
?????目錄???????????0??2014-02-21?22:51??__MACOSX\SlideView-master\
?????文件?????????120??2014-02-21?22:43??__MACOSX\SlideView-master\._.DS_Store
?????文件?????????237??2013-12-27?00:10??SlideView-master\.gitignore
?????文件?????????212??2013-12-27?00:10??__MACOSX\SlideView-master\._.gitignore
?????文件?????????350??2013-12-27?00:10??SlideView-master\README.md
?????文件?????????212??2013-12-27?00:10??__MACOSX\SlideView-master\._README.md
?????目錄???????????0??2014-02-21?22:43??SlideView-master\SlideView\
?????文件????????6148??2014-02-21?22:43??SlideView-master\SlideView\.DS_Store
?????目錄???????????0??2014-02-21?22:51??__MACOSX\SlideView-master\SlideView\
?????文件?????????120??2014-02-21?22:43??__MACOSX\SlideView-master\SlideView\._.DS_Store
?????目錄???????????0??2013-12-27?00:10??SlideView-master\SlideView\SlideView\
?????文件?????????383??2013-12-27?00:10??SlideView-master\SlideView\SlideView\AppDelegate.h
?????目錄???????????0??2014-02-21?22:51??__MACOSX\SlideView-master\SlideView\SlideView\
?????文件?????????212??2013-12-27?00:10??__MACOSX\SlideView-master\SlideView\SlideView\._AppDelegate.h
?????文件????????2678??2013-12-27?00:10??SlideView-master\SlideView\SlideView\AppDelegate.m
?????文件?????????212??2013-12-27?00:10??__MACOSX\SlideView-master\SlideView\SlideView\._AppDelegate.m
?????目錄???????????0??2013-12-27?00:10??SlideView-master\SlideView\SlideView\Classes\
?????文件?????????584??2013-12-27?00:10??SlideView-master\SlideView\SlideView\Classes\SVGloble.h
?????目錄???????????0??2014-02-21?22:51??__MACOSX\SlideView-master\SlideView\SlideView\Classes\
?????文件?????????212??2013-12-27?00:10??__MACOSX\SlideView-master\SlideView\SlideView\Classes\._SVGloble.h
?????文件????????1124??2013-12-27?00:10??SlideView-master\SlideView\SlideView\Classes\SVGloble.m
?????文件?????????212??2013-12-27?00:10??__MACOSX\SlideView-master\SlideView\SlideView\Classes\._SVGloble.m
?????文件?????????500??2013-12-27?00:10??SlideView-master\SlideView\SlideView\Classes\SVRootScrollView.h
?????文件?????????212??2013-12-27?00:10??__MACOSX\SlideView-master\SlideView\SlideView\Classes\._SVRootScrollView.h
?????文件????????3166??2013-12-27?00:10??SlideView-master\SlideView\SlideView\Classes\SVRootScrollView.m
?????文件?????????212??2013-12-27?00:10??__MACOSX\SlideView-master\SlideView\SlideView\Classes\._SVRootScrollView.m
?????文件????????1016??2013-12-27?00:10??SlideView-master\SlideView\SlideView\Classes\SVTopScrollView.h
?????文件?????????212??2013-12-27?00:10??__MACOSX\SlideView-master\SlideView\SlideView\Classes\._SVTopScrollView.h
............此處省略68個文件信息
- 上一篇:ansoft maxwell v12破解
- 下一篇:8路移存型彩燈控制器
評論
共有 條評論