资源简介
说明
这是一个具备常规功能并方便改造的购物车模型 一共包含五个模块:
* `GBShopcartViewController`: 购物车控制器 负责协调Model和View 只有100多行代码
* `GBShopcartFormat`: 负责网络请求与逻辑处理
* `GBShopcartTableViewProxy`: 作为控制器里边TableView的代理
* `View`: 包括Cell、HeaderView、CountView(改变商品数的视图)、BottomView(控制器底部包含结算按钮的视图)
* `Model`: 包含BrandModel和ProductModel两层
## 使用
首先将工程里边的JVShopcart文件夹拖入你的项目 然后就是开源库Vendor文件夹根据需求处理 Model是一定会改的 但是购物车的Model大同小异 其他的改动不会太大
代码片段和文件信息
//
// AppDelegate.m
// GBShopcart
//
// Created by GGBShopCar on 18/1/03.
// Copyright © 2018年 GGBShopCar. All rights reserved.
//
#import “AppDelegate.h“
#import “IQKeyboardManager.h“
#import “ViewController.h“
@interface AppDelegate ()
@end
@implementation AppDelegate
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
self.window.backgroundColor = [UIColor whiteColor];
ViewController *VC = [[ViewController alloc] init];
UINavigationController *NVC = [[UINavigationController alloc] initWithRootViewController:VC];
self.window.rootViewController = NVC;
[[IQKeyboardManager sharedManager] setToolbarDoneBarButtonItemText:@“完成“];
[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-01-08 12:26 GBShopcart\
文件 6148 2018-01-12 13:33 GBShopcart\.DS_Store
目录 0 2018-01-19 10:44 __MACOSX\
目录 0 2018-01-19 10:44 __MACOSX\GBShopcart\
文件 120 2018-01-12 13:33 __MACOSX\GBShopcart\._.DS_Store
目录 0 2018-01-10 11:54 GBShopcart\.git\
文件 13 2018-01-10 11:54 GBShopcart\.git\COMMIT_EDITMSG
文件 248 2018-01-08 11:10 GBShopcart\.git\config
文件 73 2018-01-08 11:09 GBShopcart\.git\desc
文件 23 2018-01-08 11:09 GBShopcart\.git\HEAD
目录 0 2018-01-08 11:09 GBShopcart\.git\hooks\
文件 177 2018-01-08 11:09 GBShopcart\.git\hooks\README.sample
文件 24549 2018-01-10 11:54 GBShopcart\.git\index
目录 0 2018-01-08 11:09 GBShopcart\.git\info\
文件 40 2018-01-08 11:09 GBShopcart\.git\info\exclude
目录 0 2018-01-19 10:44 __MACOSX\GBShopcart\.git\
目录 0 2018-01-19 10:44 __MACOSX\GBShopcart\.git\info\
文件 171 2018-01-08 11:09 __MACOSX\GBShopcart\.git\info\._exclude
目录 0 2018-01-08 11:09 GBShopcart\.git\logs\
文件 1083 2018-01-10 11:54 GBShopcart\.git\logs\HEAD
目录 0 2018-01-08 11:14 GBShopcart\.git\logs\refs\
目录 0 2018-01-08 11:09 GBShopcart\.git\logs\refs\heads\
文件 1083 2018-01-10 11:54 GBShopcart\.git\logs\refs\heads\master
目录 0 2018-01-08 11:14 GBShopcart\.git\logs\refs\remotes\
目录 0 2018-01-08 11:14 GBShopcart\.git\logs\refs\remotes\origin\
文件 1029 2018-01-10 11:54 GBShopcart\.git\logs\refs\remotes\origin\master
目录 0 2018-01-10 11:54 GBShopcart\.git\ob
目录 0 2018-01-10 11:54 GBShopcart\.git\ob
文件 125 2018-01-10 11:54 GBShopcart\.git\ob
目录 0 2018-01-08 11:09 GBShopcart\.git\ob
文件 2344 2018-01-08 11:09 GBShopcart\.git\ob
............此处省略943个文件信息
相关资源
- Cisco 1242 胖AP IOS
- 让Xcode支持iOS11.4 Beta设备真机测试
- ios仿购物系统源代码
- Y430P官方BIOS 版本: 3.66
- T43 BIOS1.02
- 神舟电脑A560 Q3I21 SLIC 2.1超频版BIOS
- IOS课程表Demo
- iOS Drawing Practical UIKit Solutions 无水印
- Windows Security Monitoring Scenarios and Patt
- bios 1.13 acer v3 571g 成功解锁advance
- v3 571g bios 1.07 解锁advance
- 手机视频监控IOS
- 广达TW9 SW9最新BIOS Q3i21
- This iPhone (Model A1863 A1905 A1906 A1907)
- 神舟K610D i7D4 Clove CW65S06 W650SB 原版BI
- ios上线项目
- foxcoon_h61s.rar
- Mac OS X and iOS Internals.pdf )
- 启天M7150 2012最新主板BIOS(含中文刷新
- 台电X80HD g2d9 BIOS
- 华擎 B150 Gaming K4 8代bios
- z77主板黑苹果bios
- 联想B470、V470 BIOS 43CN46WW
- 微信小程序实战 购物车功能
- ios课程设计
- RH1288 V2-BIOS-V520.zip
- openssl(arm64armv7sarmv7x86_64i386)
- HASEE神舟笔记本广达SW8 TW8准系统BIOS合
- 外星人X79(1).zip
- Intel S5520HC加入NVME BIOS
评论
共有 条评论