• 大小: 897KB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2021-06-11
  • 语言: 其他
  • 标签: iOS  购物车  

资源简介

别人写的demo,我的项目中就是根据这个demo改的,具体实现了单选、多选、滑动单行删除等功能

资源截图

代码片段和文件信息

//
//  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个文件信息

评论

共有 条评论