资源简介
说明
这是一个具备常规功能并方便改造的购物车模型 一共包含五个模块:
* `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个文件信息
相关资源
- DOS中断和BIOS中断手册
- 电脑BIOS设置各种中英文对照表
- The IDA Pro Book 2nd Edition
- 技嘉H310M S2 BIOS
- 技嘉z77p-d3 rev 1.0 添加nvme模块的最新
- IOS水印
- AXURE移动端素材元件库68580
- 联想H61主板BIOS升级F9KT58AUS支持22NM.i
- Lenovo Z460 SLIC2.1 LENOVO-29CN38WW(V2.15)
- 联想G400G500G490BIOS
- ASUS BIOS 加NVME协议文件: Nvme.ffs NV
- Phoenix BIOS Editor.rar
- HP笔记本BIOS丢失解决方法,DMI TOOLK
- Y450 BIOS白名单
- BIOS修改工具DMI236
- 联想F40/F41bios3.13版
- 联想启天M4350 BIOS升级文件
- 详细图解联想Y430\\Y530笔记本SLIC表2.
- 联想g460 bios 29CN38WW(V2.15)
- G460 2.15 x64 bios
- 三星通用bios更新程序
- rx560bios合集-注意显存颗粒及供电
- 联想K29最新1.70BIOS修改版,去白名单验
- 联想刷bios‘工具
- 解决Y470/Y570更新2.12BIOS后无法识别8G内
- 黑苹果—盈通 R6770-1024GD5 TA 经典版
- 华硕P8H61/USB3 R2.0主板BIOS驱动 免费版
- 映泰Biostar TA870网
- asus华硕 m5a97 le r2.0主板bios 官方版
- 华硕ASUS K42JZ BIOS主板驱动程序 v9.1.1
评论
共有 条评论