資源簡介
別人寫的demo,我的項目中就是根據(jù)這個demo改的,具體實現(xiàn)了單選、多選、滑動單行刪除等功能

代碼片段和文件信息
//
//??AppDelegate.m
//??ShoppingCartDemo
//
//??Created?by?李洋?on?2018/1/15.
//??Copyright???2018年?李洋.?All?rights?reserved.
//
#import?“AppDelegate.h“
#import?“ShoppingCartViewController.h“
@interface?AppDelegate?()
@end
@implementation?AppDelegate
-?(BOOL)application:(UIApplication?*)application?didFinishLaunchingWithOptions:(NSDictionary?*)launchOptions?{
????//?Override?point?for?customization?after?application?launch.
????
????ShoppingCartViewController?*shoppingCartVC?=?[[ShoppingCartViewController?alloc]init];
????UINavigationController?*naviController?=?[[UINavigationController?alloc]initWithRootViewController:shoppingCartVC];
????self.window?=?[[UIWindow?alloc]initWithframe:[[UIScreen?mainScreen]bounds]];
????self.window.rootViewController?=?naviController;
????[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?invalidate?graphics?rendering?callbacks.?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?active?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??2018-05-26?03:07??ShoppingCartDemo-master\
?????文件????????6148??2018-05-25?05:09??ShoppingCartDemo-master\.DS_Store
?????目錄???????????0??2018-05-25?05:10??__MACOSX\
?????目錄???????????0??2018-05-25?05:10??__MACOSX\ShoppingCartDemo-master\
?????文件?????????120??2018-05-25?05:09??__MACOSX\ShoppingCartDemo-master\._.DS_Store
?????文件?????????432??2018-01-17?22:42??ShoppingCartDemo-master\README.md
?????文件?????????212??2018-01-17?22:42??__MACOSX\ShoppingCartDemo-master\._README.md
?????文件??????614226??2018-01-17?22:42??ShoppingCartDemo-master\ShoppingCart.gif
?????文件?????????212??2018-01-17?22:42??__MACOSX\ShoppingCartDemo-master\._ShoppingCart.gif
?????目錄???????????0??2018-01-17?22:42??ShoppingCartDemo-master\ShoppingCartDemo\
?????文件?????????282??2018-01-17?22:42??ShoppingCartDemo-master\ShoppingCartDemo\AppDelegate.h
?????目錄???????????0??2018-05-25?05:10??__MACOSX\ShoppingCartDemo-master\ShoppingCartDemo\
?????文件?????????212??2018-01-17?22:42??__MACOSX\ShoppingCartDemo-master\ShoppingCartDemo\._AppDelegate.h
?????文件????????2470??2018-01-17?22:42??ShoppingCartDemo-master\ShoppingCartDemo\AppDelegate.m
?????文件?????????212??2018-01-17?22:42??__MACOSX\ShoppingCartDemo-master\ShoppingCartDemo\._AppDelegate.m
?????目錄???????????0??2018-01-17?22:42??ShoppingCartDemo-master\ShoppingCartDemo\Assets.xcassets\
?????目錄???????????0??2018-01-17?22:42??ShoppingCartDemo-master\ShoppingCartDemo\Assets.xcassets\AddIcon.imageset\
?????文件????????1259??2018-01-17?22:42??ShoppingCartDemo-master\ShoppingCartDemo\Assets.xcassets\AddIcon.imageset\AddIcon@2x.png
?????目錄???????????0??2018-05-25?05:10??__MACOSX\ShoppingCartDemo-master\ShoppingCartDemo\Assets.xcassets\
?????目錄???????????0??2018-05-25?05:10??__MACOSX\ShoppingCartDemo-master\ShoppingCartDemo\Assets.xcassets\AddIcon.imageset\
?????文件?????????212??2018-01-17?22:42??__MACOSX\ShoppingCartDemo-master\ShoppingCartDemo\Assets.xcassets\AddIcon.imageset\._AddIcon@2x.png
?????文件????????1422??2018-01-17?22:42??ShoppingCartDemo-master\ShoppingCartDemo\Assets.xcassets\AddIcon.imageset\AddIcon@3x.png
?????文件?????????212??2018-01-17?22:42??__MACOSX\ShoppingCartDemo-master\ShoppingCartDemo\Assets.xcassets\AddIcon.imageset\._AddIcon@3x.png
?????文件?????????344??2018-01-17?22:42??ShoppingCartDemo-master\ShoppingCartDemo\Assets.xcassets\AddIcon.imageset\Contents.json
?????文件?????????212??2018-01-17?22:42??__MACOSX\ShoppingCartDemo-master\ShoppingCartDemo\Assets.xcassets\AddIcon.imageset\._Contents.json
?????文件?????????212??2018-01-17?22:42??__MACOSX\ShoppingCartDemo-master\ShoppingCartDemo\Assets.xcassets\._AddIcon.imageset
?????目錄???????????0??2018-01-17?22:42??ShoppingCartDemo-master\ShoppingCartDemo\Assets.xcassets\AppIcon.appiconset\
?????文件?????????753??2018-01-17?22:42??ShoppingCartDemo-master\ShoppingCartDemo\Assets.xcassets\AppIcon.appiconset\Contents.json
?????目錄???????????0??2018-05-25?05:10??__MACOSX\ShoppingCartDemo-master\ShoppingCartDemo\Assets.xcassets\AppIcon.appiconset\
?????文件?????????212??2018-01-17?22:42??__MACOSX\ShoppingCartDemo-master\ShoppingCartDemo\Assets.xcassets\AppIcon.appiconset\._Contents.json
?????文件?????????212??2018-01-17?22:42??__MACOSX\ShoppingCartDemo-master\ShoppingCartDemo\Assets.xcassets\._AppIcon.appiconset
............此處省略147個文件信息
- 上一篇:多線程安全鏈表操作的C程序
- 下一篇:NugetPackages.TXT
評論
共有 條評論