-
大小: 811KB文件類型: .zip金幣: 2下載: 1 次發(fā)布日期: 2021-11-14
- 語言: 其他
- 標(biāo)簽:
資源簡介
類似QQ側(cè)滑菜單,側(cè)滑手勢獨(dú)立封裝,只需要主視圖側(cè)滑的主視圖控制器 繼承即可實(shí)現(xiàn),有縮小放大效果,有平移效果。代碼有詳細(xì)注釋。

代碼片段和文件信息
//
//??AppDelegate.m
//??Sideslip
//
//??Created?by?HeartDoc?on?16/6/2.
//??Copyright???2016年?songjingpei.?All?rights?reserved.
//
#import?“AppDelegate.h“
#import?“MainViewController.h“
@interface?AppDelegate?()
@end
@implementation?AppDelegate
-?(BOOL)application:(UIApplication?*)application?didFinishLaunchingWithOptions:(NSDictionary?*)launchOptions?{
????self.window?=?[[UIWindow?alloc]?initWithframe:[[UIScreen?mainScreen]?bounds]];
????
????MainViewController?*?main?=?[[MainViewController?alloc]initWithNibName:@“MainViewController“?bundle:nil];
????UINavigationController?*?nav?=?[[UINavigationController?alloc]initWithRootViewController:main?];
????self.window.rootViewController?=?nav;
????
???????
????[[UIApplication?sharedApplication]?setStatusBarHidden:NO];
????[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??2016-06-02?16:20??Sideslip\
?????文件????????6148??2016-06-02?16:20??Sideslip\.DS_Store
?????目錄???????????0??2016-06-03?17:30??__MACOSX\
?????目錄???????????0??2016-06-03?17:30??__MACOSX\Sideslip\
?????文件?????????120??2016-06-02?16:20??__MACOSX\Sideslip\._.DS_Store
?????目錄???????????0??2016-06-03?17:27??Sideslip\.git\
?????文件??????????15??2016-06-02?15:33??Sideslip\.git\COMMIT_EDITMSG
?????文件?????????144??2016-06-02?15:33??Sideslip\.git\config
?????文件??????????73??2016-06-02?15:33??Sideslip\.git\desc
?????文件??????????23??2016-06-02?15:33??Sideslip\.git\HEAD
?????目錄???????????0??2016-06-02?15:33??Sideslip\.git\hooks\
?????文件?????????177??2016-06-02?15:33??Sideslip\.git\hooks\README.sample
?????文件????????3691??2016-06-03?17:16??Sideslip\.git\index
?????目錄???????????0??2016-06-02?15:33??Sideslip\.git\info\
?????文件??????????40??2016-06-02?15:33??Sideslip\.git\info\exclude
?????目錄???????????0??2016-06-03?17:30??__MACOSX\Sideslip\.git\
?????目錄???????????0??2016-06-03?17:30??__MACOSX\Sideslip\.git\info\
?????文件?????????171??2016-06-02?15:33??__MACOSX\Sideslip\.git\info\._exclude
?????目錄???????????0??2016-06-02?15:33??Sideslip\.git\logs\
?????文件?????????172??2016-06-02?15:33??Sideslip\.git\logs\HEAD
?????目錄???????????0??2016-06-02?15:33??Sideslip\.git\logs\refs\
?????目錄???????????0??2016-06-02?15:33??Sideslip\.git\logs\refs\heads\
?????文件?????????172??2016-06-02?15:33??Sideslip\.git\logs\refs\heads\master
?????目錄???????????0??2016-06-03?17:16??Sideslip\.git\ob
?????目錄???????????0??2016-06-03?10:36??Sideslip\.git\ob
?????文件?????????857??2016-06-03?10:36??Sideslip\.git\ob
?????目錄???????????0??2016-06-02?16:13??Sideslip\.git\ob
?????文件?????????137??2016-06-02?15:33??Sideslip\.git\ob
?????文件????????1903??2016-06-02?16:13??Sideslip\.git\ob
?????目錄???????????0??2016-06-02?15:36??Sideslip\.git\ob
?????文件?????????272??2016-06-02?15:36??Sideslip\.git\ob
............此處省略177個文件信息
- 上一篇:噪聲生成c程序
- 下一篇:AD835中文資料及應(yīng)用
評論
共有 條評論