├── README.md └── TJSecendFloor ├── TJSecendFloor ├── AppDelegate.h ├── AppDelegate.m ├── Assets.xcassets │ ├── 2thF.imageset │ │ ├── 2thF-1.jpg │ │ ├── 2thF.jpg │ │ └── Contents.json │ ├── AppIcon.appiconset │ │ └── Contents.json │ └── Contents.json ├── Base.lproj │ ├── LaunchScreen.storyboard │ └── Main.storyboard ├── Info.plist ├── TJCommunityCoverTVC.h ├── TJCommunityCoverTVC.m ├── TJCommunityCoverTVC.xib ├── TJCommunityIndexPageTVC.h ├── TJCommunityIndexPageTVC.m ├── TJCommunityIndexPageTVC.xib ├── TJCommunitySplitStyleCell.h ├── TJCommunitySplitStyleCell.m ├── TJCommunitySplitStyleCell.xib ├── ViewController.h ├── ViewController.m └── main.m ├── TJSecendFloorUITests ├── Info.plist └── TJSecendFloorUITests.m └── TJSecondFloor.xcodeproj ├── project.pbxproj ├── project.xcworkspace ├── contents.xcworkspacedata ├── xcshareddata │ └── WorkspaceSettings.xcsettings └── xcuserdata │ ├── liqiong.xcuserdatad │ └── UserInterfaceState.xcuserstate │ └── town.xcuserdatad │ ├── UserInterfaceState.xcuserstate │ └── WorkspaceSettings.xcsettings └── xcuserdata ├── liqiong.xcuserdatad ├── xcdebugger │ └── Breakpoints_v2.xcbkptlist └── xcschemes │ └── xcschememanagement.plist └── town.xcuserdatad ├── xcdebugger └── Breakpoints_v2.xcbkptlist └── xcschemes └── xcschememanagement.plist /README.md: -------------------------------------------------------------------------------- 1 | # TJSecondFloor 2 | 由于要使用淘宝二楼这种效果,但网上又找不到源代码,于是我自己写了一个。 3 | 4 | 5 | 下拉一段距离,松手刷新,下拉多一点,进入二楼。 6 | 7 | 主要难点在于,由于下拉不在顶部,无法利用系统的弹璜效果,只能自己用数学知识模拟一个弹璜阻尼。 8 | 9 | 只实现了主要效果,刷新功能需要大家自己去写。 10 | -------------------------------------------------------------------------------- /TJSecendFloor/TJSecendFloor/AppDelegate.h: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.h 3 | // TJSecendFloor 4 | // 5 | // Created by 李琼 on 2017/1/1. 6 | // Copyright © 2017年 Town. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface AppDelegate : UIResponder 12 | 13 | @property (strong, nonatomic) UIWindow *window; 14 | 15 | 16 | @end 17 | 18 | -------------------------------------------------------------------------------- /TJSecendFloor/TJSecendFloor/AppDelegate.m: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.m 3 | // TJSecendFloor 4 | // 5 | // Created by 李琼 on 2017/1/1. 6 | // Copyright © 2017年 Town. All rights reserved. 7 | // 8 | 9 | #import "AppDelegate.h" 10 | 11 | @interface AppDelegate () 12 | 13 | @end 14 | 15 | @implementation AppDelegate 16 | 17 | 18 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { 19 | // Override point for customization after application launch. 20 | return YES; 21 | } 22 | 23 | 24 | - (void)applicationWillResignActive:(UIApplication *)application { 25 | // 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. 26 | // Use this method to pause ongoing tasks, disable timers, and invalidate graphics rendering callbacks. Games should use this method to pause the game. 27 | } 28 | 29 | 30 | - (void)applicationDidEnterBackground:(UIApplication *)application { 31 | // 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. 32 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. 33 | } 34 | 35 | 36 | - (void)applicationWillEnterForeground:(UIApplication *)application { 37 | // 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. 38 | } 39 | 40 | 41 | - (void)applicationDidBecomeActive:(UIApplication *)application { 42 | // 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. 43 | } 44 | 45 | 46 | - (void)applicationWillTerminate:(UIApplication *)application { 47 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. 48 | } 49 | 50 | 51 | @end 52 | -------------------------------------------------------------------------------- /TJSecendFloor/TJSecendFloor/Assets.xcassets/2thF.imageset/2thF-1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TownKing/TJSecondFloor/a2cb414b6d6538b8566a64e353310e9a69f23956/TJSecendFloor/TJSecendFloor/Assets.xcassets/2thF.imageset/2thF-1.jpg -------------------------------------------------------------------------------- /TJSecendFloor/TJSecendFloor/Assets.xcassets/2thF.imageset/2thF.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TownKing/TJSecondFloor/a2cb414b6d6538b8566a64e353310e9a69f23956/TJSecendFloor/TJSecendFloor/Assets.xcassets/2thF.imageset/2thF.jpg -------------------------------------------------------------------------------- /TJSecendFloor/TJSecendFloor/Assets.xcassets/2thF.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "filename" : "2thF.jpg", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "filename" : "2thF-1.jpg", 15 | "scale" : "3x" 16 | } 17 | ], 18 | "info" : { 19 | "version" : 1, 20 | "author" : "xcode" 21 | } 22 | } -------------------------------------------------------------------------------- /TJSecendFloor/TJSecendFloor/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "size" : "20x20", 6 | "scale" : "2x" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "size" : "20x20", 11 | "scale" : "3x" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "size" : "29x29", 16 | "scale" : "2x" 17 | }, 18 | { 19 | "idiom" : "iphone", 20 | "size" : "29x29", 21 | "scale" : "3x" 22 | }, 23 | { 24 | "idiom" : "iphone", 25 | "size" : "40x40", 26 | "scale" : "2x" 27 | }, 28 | { 29 | "idiom" : "iphone", 30 | "size" : "40x40", 31 | "scale" : "3x" 32 | }, 33 | { 34 | "idiom" : "iphone", 35 | "size" : "60x60", 36 | "scale" : "2x" 37 | }, 38 | { 39 | "idiom" : "iphone", 40 | "size" : "60x60", 41 | "scale" : "3x" 42 | }, 43 | { 44 | "idiom" : "ipad", 45 | "size" : "20x20", 46 | "scale" : "1x" 47 | }, 48 | { 49 | "idiom" : "ipad", 50 | "size" : "20x20", 51 | "scale" : "2x" 52 | }, 53 | { 54 | "idiom" : "ipad", 55 | "size" : "29x29", 56 | "scale" : "1x" 57 | }, 58 | { 59 | "idiom" : "ipad", 60 | "size" : "29x29", 61 | "scale" : "2x" 62 | }, 63 | { 64 | "idiom" : "ipad", 65 | "size" : "40x40", 66 | "scale" : "1x" 67 | }, 68 | { 69 | "idiom" : "ipad", 70 | "size" : "40x40", 71 | "scale" : "2x" 72 | }, 73 | { 74 | "idiom" : "ipad", 75 | "size" : "76x76", 76 | "scale" : "1x" 77 | }, 78 | { 79 | "idiom" : "ipad", 80 | "size" : "76x76", 81 | "scale" : "2x" 82 | }, 83 | { 84 | "idiom" : "ipad", 85 | "size" : "83.5x83.5", 86 | "scale" : "2x" 87 | }, 88 | { 89 | "idiom" : "ios-marketing", 90 | "size" : "1024x1024", 91 | "scale" : "1x" 92 | } 93 | ], 94 | "info" : { 95 | "version" : 1, 96 | "author" : "xcode" 97 | } 98 | } -------------------------------------------------------------------------------- /TJSecendFloor/TJSecendFloor/Assets.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } -------------------------------------------------------------------------------- /TJSecendFloor/TJSecendFloor/Base.lproj/LaunchScreen.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /TJSecendFloor/TJSecendFloor/Base.lproj/Main.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 36 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | -------------------------------------------------------------------------------- /TJSecendFloor/TJSecendFloor/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | $(DEVELOPMENT_LANGUAGE) 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | APPL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleVersion 20 | 1 21 | LSRequiresIPhoneOS 22 | 23 | UILaunchStoryboardName 24 | LaunchScreen 25 | UIMainStoryboardFile 26 | Main 27 | UIRequiredDeviceCapabilities 28 | 29 | armv7 30 | 31 | UISupportedInterfaceOrientations 32 | 33 | UIInterfaceOrientationPortrait 34 | UIInterfaceOrientationLandscapeLeft 35 | UIInterfaceOrientationLandscapeRight 36 | 37 | UISupportedInterfaceOrientations~ipad 38 | 39 | UIInterfaceOrientationPortrait 40 | UIInterfaceOrientationPortraitUpsideDown 41 | UIInterfaceOrientationLandscapeLeft 42 | UIInterfaceOrientationLandscapeRight 43 | 44 | 45 | 46 | -------------------------------------------------------------------------------- /TJSecendFloor/TJSecendFloor/TJCommunityCoverTVC.h: -------------------------------------------------------------------------------- 1 | // 2 | // TJCommunityCoverTVC.h 3 | // TJSecendFloor 4 | // 5 | // Created by 唐京 on 2017/12/5. 6 | // Copyright © 2017年 Town. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface TJCommunityCoverTVC : UITableViewCell 12 | 13 | @end 14 | -------------------------------------------------------------------------------- /TJSecendFloor/TJSecendFloor/TJCommunityCoverTVC.m: -------------------------------------------------------------------------------- 1 | // 2 | // TJCommunityCoverTVC.m 3 | // TJSecendFloor 4 | // 5 | // Created by 唐京 on 2017/12/5. 6 | // Copyright © 2017年 Town. All rights reserved. 7 | // 8 | 9 | #import "TJCommunityCoverTVC.h" 10 | 11 | @implementation TJCommunityCoverTVC 12 | 13 | - (void)awakeFromNib { 14 | [super awakeFromNib]; 15 | // Initialization code 16 | } 17 | 18 | - (void)setSelected:(BOOL)selected animated:(BOOL)animated { 19 | [super setSelected:selected animated:animated]; 20 | 21 | // Configure the view for the selected state 22 | } 23 | 24 | @end 25 | -------------------------------------------------------------------------------- /TJSecendFloor/TJSecendFloor/TJCommunityCoverTVC.xib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 29 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | -------------------------------------------------------------------------------- /TJSecendFloor/TJSecendFloor/TJCommunityIndexPageTVC.h: -------------------------------------------------------------------------------- 1 | // 2 | // TJCommunityIndexPageTVC.h 3 | // TJTest 4 | // 5 | // Created by 唐京 on 2017/12/4. 6 | // Copyright © 2017年 town. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface TJCommunityIndexPageTVC : UITableViewCell 12 | 13 | @end 14 | -------------------------------------------------------------------------------- /TJSecendFloor/TJSecendFloor/TJCommunityIndexPageTVC.m: -------------------------------------------------------------------------------- 1 | // 2 | // TJCommunityIndexPageTVC.m 3 | // TJTest 4 | // 5 | // Created by 唐京 on 2017/12/4. 6 | // Copyright © 2017年 town. All rights reserved. 7 | // 8 | 9 | #import "TJCommunityIndexPageTVC.h" 10 | 11 | @implementation TJCommunityIndexPageTVC 12 | 13 | - (void)awakeFromNib { 14 | [super awakeFromNib]; 15 | // Initialization code 16 | } 17 | 18 | - (void)setSelected:(BOOL)selected animated:(BOOL)animated { 19 | [super setSelected:selected animated:animated]; 20 | 21 | // Configure the view for the selected state 22 | } 23 | 24 | @end 25 | -------------------------------------------------------------------------------- /TJSecendFloor/TJSecendFloor/TJCommunityIndexPageTVC.xib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | -------------------------------------------------------------------------------- /TJSecendFloor/TJSecendFloor/TJCommunitySplitStyleCell.h: -------------------------------------------------------------------------------- 1 | // 2 | // TJCommunitySplitStyleCell.h 3 | // TJTest 4 | // 5 | // Created by 唐京 on 2017/12/4. 6 | // Copyright © 2017年 town. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface TJCommunitySplitStyleCell : UITableViewCell 12 | 13 | @end 14 | -------------------------------------------------------------------------------- /TJSecendFloor/TJSecendFloor/TJCommunitySplitStyleCell.m: -------------------------------------------------------------------------------- 1 | // 2 | // TJCommunitySplitStyleCell.m 3 | // TJTest 4 | // 5 | // Created by 唐京 on 2017/12/4. 6 | // Copyright © 2017年 town. All rights reserved. 7 | // 8 | 9 | #import "TJCommunitySplitStyleCell.h" 10 | 11 | @implementation TJCommunitySplitStyleCell 12 | 13 | - (void)awakeFromNib { 14 | [super awakeFromNib]; 15 | // Initialization code 16 | } 17 | 18 | - (void)setSelected:(BOOL)selected animated:(BOOL)animated { 19 | [super setSelected:selected animated:animated]; 20 | 21 | // Configure the view for the selected state 22 | } 23 | 24 | @end 25 | -------------------------------------------------------------------------------- /TJSecendFloor/TJSecendFloor/TJCommunitySplitStyleCell.xib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /TJSecendFloor/TJSecendFloor/ViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.h 3 | // TJSecendFloor 4 | // 5 | // Created by 李琼 on 2017/1/1. 6 | // Copyright © 2017年 Town. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface ViewController : UIViewController 12 | 13 | 14 | @end 15 | 16 | -------------------------------------------------------------------------------- /TJSecendFloor/TJSecendFloor/ViewController.m: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.m 3 | // TJSecendFloor 4 | // 5 | // Created by 李琼 on 2017/1/1. 6 | // Copyright © 2017年 Town. All rights reserved. 7 | // 8 | 9 | #import "ViewController.h" 10 | #import "TJCommunityCoverTVC.h" 11 | #import "TJCommunityIndexPageTVC.h" 12 | #import "TJCommunitySplitStyleCell.h" 13 | 14 | #define kScreenHeight [UIScreen mainScreen].bounds.size.height 15 | 16 | @interface ViewController (){ 17 | CGFloat previousOffsetY; 18 | UIActivityIndicatorView *topAV; 19 | BOOL shoulRecognizeScroll; 20 | CGFloat refreshAreaHeight;//下拉多长进入二楼 21 | } 22 | @property (weak, nonatomic) IBOutlet UITableView *mytab; 23 | 24 | @end 25 | 26 | @implementation ViewController 27 | 28 | - (void)viewDidLoad { 29 | [super viewDidLoad]; 30 | _mytab.dataSource = self; 31 | _mytab.delegate = self; 32 | [self configPanGesture]; 33 | previousOffsetY = 0; 34 | refreshAreaHeight = 110; 35 | [_mytab registerNib:[UINib nibWithNibName:@"TJCommunityCoverTVC" bundle:nil] forCellReuseIdentifier:@"coverCell"]; 36 | [_mytab registerNib:[UINib nibWithNibName:@"TJCommunityIndexPageTVC" bundle:nil] forCellReuseIdentifier:@"indexPageCell"]; 37 | [_mytab registerNib:[UINib nibWithNibName:@"TJCommunitySplitStyleCell" bundle:nil] forCellReuseIdentifier:@"splitCell"]; 38 | // Do any additional setup after loading the view, typically from a nib. 39 | } 40 | 41 | - (void)viewDidAppear:(BOOL)animated{ 42 | _mytab.contentOffset = CGPointMake(0, kScreenHeight); 43 | 44 | } 45 | 46 | - (void)configPanGesture{ 47 | UIPanGestureRecognizer *pan = [[UIPanGestureRecognizer alloc] initWithTarget:self action:@selector(pan:)]; 48 | pan.delegate = self; 49 | [_mytab addGestureRecognizer:pan]; 50 | } 51 | - (void)pan: (UIPanGestureRecognizer *)pan{ 52 | 53 | NSLog(@"currentOffsety:%f",_mytab.contentOffset.y); 54 | CGFloat currentOffset = _mytab.contentOffset.y; 55 | if (pan.state ==UIGestureRecognizerStateEnded || pan.state == UIGestureRecognizerStateCancelled) { 56 | CGFloat velocity = [pan velocityInView:_mytab].y; 57 | 58 | if (currentOffset > kScreenHeight - refreshAreaHeight && currentOffset < kScreenHeight) { 59 | if (velocity > 0) { 60 | [UIView animateWithDuration:1 delay:0 usingSpringWithDamping:0.9 initialSpringVelocity:0.3 options:UIViewAnimationOptionCurveLinear animations:^{ 61 | [_mytab setContentOffset:CGPointMake(0, kScreenHeight) animated:true]; 62 | 63 | } completion:^(BOOL finished) { 64 | 65 | }]; 66 | } 67 | }else if(currentOffset < kScreenHeight - refreshAreaHeight){ 68 | NSLog(@"v:%f",velocity); 69 | //-200为下滑手势的最低加速值 70 | if (velocity >= -200.0) { 71 | [_mytab setContentOffset:CGPointMake(0, 0) animated:true]; 72 | } 73 | } 74 | } 75 | } 76 | 77 | - (BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer shouldRecognizeSimultaneouslyWithGestureRecognizer:(UIGestureRecognizer *)otherGestureRecognizer{ 78 | return true; 79 | } 80 | 81 | - (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section{ 82 | return 5; 83 | } 84 | 85 | - (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath{ 86 | return [UIScreen mainScreen].bounds.size.height; 87 | } 88 | 89 | - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{ 90 | UITableViewCell *cell = nil; 91 | 92 | if (indexPath.row == 0) { 93 | cell = [tableView dequeueReusableCellWithIdentifier:@"coverCell"]; 94 | if (!topAV) { 95 | topAV = [cell viewWithTag:47]; 96 | 97 | } 98 | 99 | }else if(indexPath.row == 1){ 100 | cell = [tableView dequeueReusableCellWithIdentifier:@"indexPageCell"]; 101 | 102 | }else{ 103 | cell = [tableView dequeueReusableCellWithIdentifier:@"splitCell"]; 104 | 105 | } 106 | 107 | 108 | return cell; 109 | } 110 | 111 | - (void)scrollViewDidScroll:(UIScrollView *)scrollView{ 112 | if (!shoulRecognizeScroll) { 113 | shoulRecognizeScroll = true; 114 | return; 115 | } 116 | NSLog(@"currentOffsety:%f",_mytab.contentOffset.y); 117 | CGFloat currentOffset = _mytab.contentOffset.y; 118 | if (currentOffset > kScreenHeight - refreshAreaHeight && currentOffset < kScreenHeight) { 119 | CGFloat delta = previousOffsetY - currentOffset; 120 | 121 | 122 | NSLog(@"delta:%f,deltaRate:%f",delta,(refreshAreaHeight -(kScreenHeight - currentOffset)) / (refreshAreaHeight)); 123 | 124 | if (delta > 0) { 125 | topAV.hidden = false; 126 | [topAV startAnimating]; 127 | //speedRate为下拉阻尼系数 128 | CGFloat speedRate = delta * (refreshAreaHeight -(kScreenHeight - currentOffset)) / (refreshAreaHeight) / 10; 129 | 130 | NSLog(@"sr:%f",speedRate); 131 | [_mytab setContentOffset:CGPointMake(0, currentOffset + speedRate)]; 132 | } 133 | }else{ 134 | topAV.hidden = true; 135 | } 136 | 137 | previousOffsetY = _mytab.contentOffset.y; 138 | 139 | } 140 | - (void)didReceiveMemoryWarning { 141 | [super didReceiveMemoryWarning]; 142 | // Dispose of any resources that can be recreated. 143 | } 144 | 145 | 146 | @end 147 | -------------------------------------------------------------------------------- /TJSecendFloor/TJSecendFloor/main.m: -------------------------------------------------------------------------------- 1 | // 2 | // main.m 3 | // TJSecendFloor 4 | // 5 | // Created by 李琼 on 2017/1/1. 6 | // Copyright © 2017年 Town. All rights reserved. 7 | // 8 | 9 | #import 10 | #import "AppDelegate.h" 11 | 12 | int main(int argc, char * argv[]) { 13 | @autoreleasepool { 14 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /TJSecendFloor/TJSecendFloorUITests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | $(DEVELOPMENT_LANGUAGE) 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | BNDL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleVersion 20 | 1 21 | 22 | 23 | -------------------------------------------------------------------------------- /TJSecendFloor/TJSecendFloorUITests/TJSecendFloorUITests.m: -------------------------------------------------------------------------------- 1 | // 2 | // TJSecendFloorUITests.m 3 | // TJSecendFloorUITests 4 | // 5 | // Created by 李琼 on 2017/1/1. 6 | // Copyright © 2017年 Town. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface TJSecendFloorUITests : XCTestCase 12 | 13 | @end 14 | 15 | @implementation TJSecendFloorUITests 16 | 17 | - (void)setUp { 18 | [super setUp]; 19 | 20 | // Put setup code here. This method is called before the invocation of each test method in the class. 21 | 22 | // In UI tests it is usually best to stop immediately when a failure occurs. 23 | self.continueAfterFailure = NO; 24 | // UI tests must launch the application that they test. Doing this in setup will make sure it happens for each test method. 25 | [[[XCUIApplication alloc] init] launch]; 26 | 27 | // In UI tests it’s important to set the initial state - such as interface orientation - required for your tests before they run. The setUp method is a good place to do this. 28 | } 29 | 30 | - (void)tearDown { 31 | // Put teardown code here. This method is called after the invocation of each test method in the class. 32 | [super tearDown]; 33 | } 34 | 35 | - (void)testExample { 36 | // Use recording to get started writing UI tests. 37 | // Use XCTAssert and related functions to verify your tests produce the correct results. 38 | } 39 | 40 | @end 41 | -------------------------------------------------------------------------------- /TJSecendFloor/TJSecondFloor.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 48; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 0C5093B61FD649E600261617 /* TJCommunityIndexPageTVC.xib in Resources */ = {isa = PBXBuildFile; fileRef = 0C5093B01FD649E500261617 /* TJCommunityIndexPageTVC.xib */; }; 11 | 0C5093B71FD649E600261617 /* TJCommunitySplitStyleCell.m in Sources */ = {isa = PBXBuildFile; fileRef = 0C5093B11FD649E500261617 /* TJCommunitySplitStyleCell.m */; }; 12 | 0C5093B81FD649E600261617 /* TJCommunityIndexPageTVC.m in Sources */ = {isa = PBXBuildFile; fileRef = 0C5093B21FD649E500261617 /* TJCommunityIndexPageTVC.m */; }; 13 | 0C5093B91FD649E600261617 /* TJCommunitySplitStyleCell.xib in Resources */ = {isa = PBXBuildFile; fileRef = 0C5093B41FD649E600261617 /* TJCommunitySplitStyleCell.xib */; }; 14 | 0C5093BD1FD64B6B00261617 /* TJCommunityCoverTVC.m in Sources */ = {isa = PBXBuildFile; fileRef = 0C5093BB1FD64B6B00261617 /* TJCommunityCoverTVC.m */; }; 15 | 0C5093BE1FD64B6B00261617 /* TJCommunityCoverTVC.xib in Resources */ = {isa = PBXBuildFile; fileRef = 0C5093BC1FD64B6B00261617 /* TJCommunityCoverTVC.xib */; }; 16 | 355DD6651E187F2D00DC8757 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 355DD6641E187F2D00DC8757 /* AppDelegate.m */; }; 17 | 355DD6681E187F2D00DC8757 /* ViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 355DD6671E187F2D00DC8757 /* ViewController.m */; }; 18 | 355DD66B1E187F2D00DC8757 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 355DD6691E187F2D00DC8757 /* Main.storyboard */; }; 19 | 355DD66D1E187F2D00DC8757 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 355DD66C1E187F2D00DC8757 /* Assets.xcassets */; }; 20 | 355DD6701E187F2D00DC8757 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 355DD66E1E187F2D00DC8757 /* LaunchScreen.storyboard */; }; 21 | 355DD6731E187F2D00DC8757 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 355DD6721E187F2D00DC8757 /* main.m */; }; 22 | 355DD67D1E187F2E00DC8757 /* TJSecendFloorUITests.m in Sources */ = {isa = PBXBuildFile; fileRef = 355DD67C1E187F2E00DC8757 /* TJSecendFloorUITests.m */; }; 23 | /* End PBXBuildFile section */ 24 | 25 | /* Begin PBXContainerItemProxy section */ 26 | 355DD6791E187F2E00DC8757 /* PBXContainerItemProxy */ = { 27 | isa = PBXContainerItemProxy; 28 | containerPortal = 355DD6581E187F2D00DC8757 /* Project object */; 29 | proxyType = 1; 30 | remoteGlobalIDString = 355DD65F1E187F2D00DC8757; 31 | remoteInfo = TJSecendFloor; 32 | }; 33 | /* End PBXContainerItemProxy section */ 34 | 35 | /* Begin PBXFileReference section */ 36 | 0C5093B01FD649E500261617 /* TJCommunityIndexPageTVC.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = TJCommunityIndexPageTVC.xib; sourceTree = ""; }; 37 | 0C5093B11FD649E500261617 /* TJCommunitySplitStyleCell.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = TJCommunitySplitStyleCell.m; sourceTree = ""; }; 38 | 0C5093B21FD649E500261617 /* TJCommunityIndexPageTVC.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = TJCommunityIndexPageTVC.m; sourceTree = ""; }; 39 | 0C5093B31FD649E600261617 /* TJCommunityIndexPageTVC.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TJCommunityIndexPageTVC.h; sourceTree = ""; }; 40 | 0C5093B41FD649E600261617 /* TJCommunitySplitStyleCell.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = TJCommunitySplitStyleCell.xib; sourceTree = ""; }; 41 | 0C5093B51FD649E600261617 /* TJCommunitySplitStyleCell.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TJCommunitySplitStyleCell.h; sourceTree = ""; }; 42 | 0C5093BA1FD64B6B00261617 /* TJCommunityCoverTVC.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = TJCommunityCoverTVC.h; sourceTree = ""; }; 43 | 0C5093BB1FD64B6B00261617 /* TJCommunityCoverTVC.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = TJCommunityCoverTVC.m; sourceTree = ""; }; 44 | 0C5093BC1FD64B6B00261617 /* TJCommunityCoverTVC.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = TJCommunityCoverTVC.xib; sourceTree = ""; }; 45 | 355DD6601E187F2D00DC8757 /* TJSecondFloor.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = TJSecondFloor.app; sourceTree = BUILT_PRODUCTS_DIR; }; 46 | 355DD6631E187F2D00DC8757 /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; }; 47 | 355DD6641E187F2D00DC8757 /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; }; 48 | 355DD6661E187F2D00DC8757 /* ViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ViewController.h; sourceTree = ""; }; 49 | 355DD6671E187F2D00DC8757 /* ViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ViewController.m; sourceTree = ""; }; 50 | 355DD66A1E187F2D00DC8757 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 51 | 355DD66C1E187F2D00DC8757 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 52 | 355DD66F1E187F2D00DC8757 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; 53 | 355DD6711E187F2D00DC8757 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 54 | 355DD6721E187F2D00DC8757 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; 55 | 355DD6781E187F2E00DC8757 /* TJSecondFloorUITests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = TJSecondFloorUITests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 56 | 355DD67C1E187F2E00DC8757 /* TJSecendFloorUITests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = TJSecendFloorUITests.m; sourceTree = ""; }; 57 | 355DD67E1E187F2E00DC8757 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 58 | /* End PBXFileReference section */ 59 | 60 | /* Begin PBXFrameworksBuildPhase section */ 61 | 355DD65D1E187F2D00DC8757 /* Frameworks */ = { 62 | isa = PBXFrameworksBuildPhase; 63 | buildActionMask = 2147483647; 64 | files = ( 65 | ); 66 | runOnlyForDeploymentPostprocessing = 0; 67 | }; 68 | 355DD6751E187F2E00DC8757 /* Frameworks */ = { 69 | isa = PBXFrameworksBuildPhase; 70 | buildActionMask = 2147483647; 71 | files = ( 72 | ); 73 | runOnlyForDeploymentPostprocessing = 0; 74 | }; 75 | /* End PBXFrameworksBuildPhase section */ 76 | 77 | /* Begin PBXGroup section */ 78 | 355DD6571E187F2D00DC8757 = { 79 | isa = PBXGroup; 80 | children = ( 81 | 355DD6621E187F2D00DC8757 /* TJSecendFloor */, 82 | 355DD67B1E187F2E00DC8757 /* TJSecendFloorUITests */, 83 | 355DD6611E187F2D00DC8757 /* Products */, 84 | ); 85 | sourceTree = ""; 86 | }; 87 | 355DD6611E187F2D00DC8757 /* Products */ = { 88 | isa = PBXGroup; 89 | children = ( 90 | 355DD6601E187F2D00DC8757 /* TJSecondFloor.app */, 91 | 355DD6781E187F2E00DC8757 /* TJSecondFloorUITests.xctest */, 92 | ); 93 | name = Products; 94 | sourceTree = ""; 95 | }; 96 | 355DD6621E187F2D00DC8757 /* TJSecendFloor */ = { 97 | isa = PBXGroup; 98 | children = ( 99 | 355DD6631E187F2D00DC8757 /* AppDelegate.h */, 100 | 355DD6641E187F2D00DC8757 /* AppDelegate.m */, 101 | 355DD6661E187F2D00DC8757 /* ViewController.h */, 102 | 355DD6671E187F2D00DC8757 /* ViewController.m */, 103 | 0C5093BA1FD64B6B00261617 /* TJCommunityCoverTVC.h */, 104 | 0C5093BB1FD64B6B00261617 /* TJCommunityCoverTVC.m */, 105 | 0C5093BC1FD64B6B00261617 /* TJCommunityCoverTVC.xib */, 106 | 0C5093B31FD649E600261617 /* TJCommunityIndexPageTVC.h */, 107 | 0C5093B21FD649E500261617 /* TJCommunityIndexPageTVC.m */, 108 | 0C5093B01FD649E500261617 /* TJCommunityIndexPageTVC.xib */, 109 | 0C5093B51FD649E600261617 /* TJCommunitySplitStyleCell.h */, 110 | 0C5093B11FD649E500261617 /* TJCommunitySplitStyleCell.m */, 111 | 0C5093B41FD649E600261617 /* TJCommunitySplitStyleCell.xib */, 112 | 355DD6691E187F2D00DC8757 /* Main.storyboard */, 113 | 355DD66C1E187F2D00DC8757 /* Assets.xcassets */, 114 | 355DD66E1E187F2D00DC8757 /* LaunchScreen.storyboard */, 115 | 355DD6711E187F2D00DC8757 /* Info.plist */, 116 | 355DD6721E187F2D00DC8757 /* main.m */, 117 | ); 118 | path = TJSecendFloor; 119 | sourceTree = ""; 120 | }; 121 | 355DD67B1E187F2E00DC8757 /* TJSecendFloorUITests */ = { 122 | isa = PBXGroup; 123 | children = ( 124 | 355DD67C1E187F2E00DC8757 /* TJSecendFloorUITests.m */, 125 | 355DD67E1E187F2E00DC8757 /* Info.plist */, 126 | ); 127 | path = TJSecendFloorUITests; 128 | sourceTree = ""; 129 | }; 130 | /* End PBXGroup section */ 131 | 132 | /* Begin PBXNativeTarget section */ 133 | 355DD65F1E187F2D00DC8757 /* TJSecondFloor */ = { 134 | isa = PBXNativeTarget; 135 | buildConfigurationList = 355DD6811E187F2E00DC8757 /* Build configuration list for PBXNativeTarget "TJSecondFloor" */; 136 | buildPhases = ( 137 | 355DD65C1E187F2D00DC8757 /* Sources */, 138 | 355DD65D1E187F2D00DC8757 /* Frameworks */, 139 | 355DD65E1E187F2D00DC8757 /* Resources */, 140 | ); 141 | buildRules = ( 142 | ); 143 | dependencies = ( 144 | ); 145 | name = TJSecondFloor; 146 | productName = TJSecendFloor; 147 | productReference = 355DD6601E187F2D00DC8757 /* TJSecondFloor.app */; 148 | productType = "com.apple.product-type.application"; 149 | }; 150 | 355DD6771E187F2E00DC8757 /* TJSecondFloorUITests */ = { 151 | isa = PBXNativeTarget; 152 | buildConfigurationList = 355DD6841E187F2E00DC8757 /* Build configuration list for PBXNativeTarget "TJSecondFloorUITests" */; 153 | buildPhases = ( 154 | 355DD6741E187F2E00DC8757 /* Sources */, 155 | 355DD6751E187F2E00DC8757 /* Frameworks */, 156 | 355DD6761E187F2E00DC8757 /* Resources */, 157 | ); 158 | buildRules = ( 159 | ); 160 | dependencies = ( 161 | 355DD67A1E187F2E00DC8757 /* PBXTargetDependency */, 162 | ); 163 | name = TJSecondFloorUITests; 164 | productName = TJSecendFloorUITests; 165 | productReference = 355DD6781E187F2E00DC8757 /* TJSecondFloorUITests.xctest */; 166 | productType = "com.apple.product-type.bundle.ui-testing"; 167 | }; 168 | /* End PBXNativeTarget section */ 169 | 170 | /* Begin PBXProject section */ 171 | 355DD6581E187F2D00DC8757 /* Project object */ = { 172 | isa = PBXProject; 173 | attributes = { 174 | LastUpgradeCheck = 0910; 175 | ORGANIZATIONNAME = Town; 176 | TargetAttributes = { 177 | 355DD65F1E187F2D00DC8757 = { 178 | CreatedOnToolsVersion = 9.1; 179 | ProvisioningStyle = Automatic; 180 | }; 181 | 355DD6771E187F2E00DC8757 = { 182 | CreatedOnToolsVersion = 9.1; 183 | ProvisioningStyle = Automatic; 184 | TestTargetID = 355DD65F1E187F2D00DC8757; 185 | }; 186 | }; 187 | }; 188 | buildConfigurationList = 355DD65B1E187F2D00DC8757 /* Build configuration list for PBXProject "TJSecondFloor" */; 189 | compatibilityVersion = "Xcode 8.0"; 190 | developmentRegion = en; 191 | hasScannedForEncodings = 0; 192 | knownRegions = ( 193 | en, 194 | Base, 195 | ); 196 | mainGroup = 355DD6571E187F2D00DC8757; 197 | productRefGroup = 355DD6611E187F2D00DC8757 /* Products */; 198 | projectDirPath = ""; 199 | projectRoot = ""; 200 | targets = ( 201 | 355DD65F1E187F2D00DC8757 /* TJSecondFloor */, 202 | 355DD6771E187F2E00DC8757 /* TJSecondFloorUITests */, 203 | ); 204 | }; 205 | /* End PBXProject section */ 206 | 207 | /* Begin PBXResourcesBuildPhase section */ 208 | 355DD65E1E187F2D00DC8757 /* Resources */ = { 209 | isa = PBXResourcesBuildPhase; 210 | buildActionMask = 2147483647; 211 | files = ( 212 | 355DD6701E187F2D00DC8757 /* LaunchScreen.storyboard in Resources */, 213 | 0C5093B61FD649E600261617 /* TJCommunityIndexPageTVC.xib in Resources */, 214 | 355DD66D1E187F2D00DC8757 /* Assets.xcassets in Resources */, 215 | 0C5093BE1FD64B6B00261617 /* TJCommunityCoverTVC.xib in Resources */, 216 | 0C5093B91FD649E600261617 /* TJCommunitySplitStyleCell.xib in Resources */, 217 | 355DD66B1E187F2D00DC8757 /* Main.storyboard in Resources */, 218 | ); 219 | runOnlyForDeploymentPostprocessing = 0; 220 | }; 221 | 355DD6761E187F2E00DC8757 /* Resources */ = { 222 | isa = PBXResourcesBuildPhase; 223 | buildActionMask = 2147483647; 224 | files = ( 225 | ); 226 | runOnlyForDeploymentPostprocessing = 0; 227 | }; 228 | /* End PBXResourcesBuildPhase section */ 229 | 230 | /* Begin PBXSourcesBuildPhase section */ 231 | 355DD65C1E187F2D00DC8757 /* Sources */ = { 232 | isa = PBXSourcesBuildPhase; 233 | buildActionMask = 2147483647; 234 | files = ( 235 | 355DD6681E187F2D00DC8757 /* ViewController.m in Sources */, 236 | 0C5093BD1FD64B6B00261617 /* TJCommunityCoverTVC.m in Sources */, 237 | 0C5093B81FD649E600261617 /* TJCommunityIndexPageTVC.m in Sources */, 238 | 355DD6731E187F2D00DC8757 /* main.m in Sources */, 239 | 0C5093B71FD649E600261617 /* TJCommunitySplitStyleCell.m in Sources */, 240 | 355DD6651E187F2D00DC8757 /* AppDelegate.m in Sources */, 241 | ); 242 | runOnlyForDeploymentPostprocessing = 0; 243 | }; 244 | 355DD6741E187F2E00DC8757 /* Sources */ = { 245 | isa = PBXSourcesBuildPhase; 246 | buildActionMask = 2147483647; 247 | files = ( 248 | 355DD67D1E187F2E00DC8757 /* TJSecendFloorUITests.m in Sources */, 249 | ); 250 | runOnlyForDeploymentPostprocessing = 0; 251 | }; 252 | /* End PBXSourcesBuildPhase section */ 253 | 254 | /* Begin PBXTargetDependency section */ 255 | 355DD67A1E187F2E00DC8757 /* PBXTargetDependency */ = { 256 | isa = PBXTargetDependency; 257 | target = 355DD65F1E187F2D00DC8757 /* TJSecondFloor */; 258 | targetProxy = 355DD6791E187F2E00DC8757 /* PBXContainerItemProxy */; 259 | }; 260 | /* End PBXTargetDependency section */ 261 | 262 | /* Begin PBXVariantGroup section */ 263 | 355DD6691E187F2D00DC8757 /* Main.storyboard */ = { 264 | isa = PBXVariantGroup; 265 | children = ( 266 | 355DD66A1E187F2D00DC8757 /* Base */, 267 | ); 268 | name = Main.storyboard; 269 | sourceTree = ""; 270 | }; 271 | 355DD66E1E187F2D00DC8757 /* LaunchScreen.storyboard */ = { 272 | isa = PBXVariantGroup; 273 | children = ( 274 | 355DD66F1E187F2D00DC8757 /* Base */, 275 | ); 276 | name = LaunchScreen.storyboard; 277 | sourceTree = ""; 278 | }; 279 | /* End PBXVariantGroup section */ 280 | 281 | /* Begin XCBuildConfiguration section */ 282 | 355DD67F1E187F2E00DC8757 /* Debug */ = { 283 | isa = XCBuildConfiguration; 284 | buildSettings = { 285 | ALWAYS_SEARCH_USER_PATHS = NO; 286 | CLANG_ANALYZER_NONNULL = YES; 287 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 288 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 289 | CLANG_CXX_LIBRARY = "libc++"; 290 | CLANG_ENABLE_MODULES = YES; 291 | CLANG_ENABLE_OBJC_ARC = YES; 292 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 293 | CLANG_WARN_BOOL_CONVERSION = YES; 294 | CLANG_WARN_COMMA = YES; 295 | CLANG_WARN_CONSTANT_CONVERSION = YES; 296 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 297 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 298 | CLANG_WARN_EMPTY_BODY = YES; 299 | CLANG_WARN_ENUM_CONVERSION = YES; 300 | CLANG_WARN_INFINITE_RECURSION = YES; 301 | CLANG_WARN_INT_CONVERSION = YES; 302 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 303 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 304 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 305 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 306 | CLANG_WARN_STRICT_PROTOTYPES = YES; 307 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 308 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 309 | CLANG_WARN_UNREACHABLE_CODE = YES; 310 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 311 | CODE_SIGN_IDENTITY = "iPhone Developer"; 312 | COPY_PHASE_STRIP = NO; 313 | DEBUG_INFORMATION_FORMAT = dwarf; 314 | ENABLE_STRICT_OBJC_MSGSEND = YES; 315 | ENABLE_TESTABILITY = YES; 316 | GCC_C_LANGUAGE_STANDARD = gnu11; 317 | GCC_DYNAMIC_NO_PIC = NO; 318 | GCC_NO_COMMON_BLOCKS = YES; 319 | GCC_OPTIMIZATION_LEVEL = 0; 320 | GCC_PREPROCESSOR_DEFINITIONS = ( 321 | "DEBUG=1", 322 | "$(inherited)", 323 | ); 324 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 325 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 326 | GCC_WARN_UNDECLARED_SELECTOR = YES; 327 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 328 | GCC_WARN_UNUSED_FUNCTION = YES; 329 | GCC_WARN_UNUSED_VARIABLE = YES; 330 | IPHONEOS_DEPLOYMENT_TARGET = 11.1; 331 | MTL_ENABLE_DEBUG_INFO = YES; 332 | ONLY_ACTIVE_ARCH = YES; 333 | SDKROOT = iphoneos; 334 | }; 335 | name = Debug; 336 | }; 337 | 355DD6801E187F2E00DC8757 /* Release */ = { 338 | isa = XCBuildConfiguration; 339 | buildSettings = { 340 | ALWAYS_SEARCH_USER_PATHS = NO; 341 | CLANG_ANALYZER_NONNULL = YES; 342 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 343 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 344 | CLANG_CXX_LIBRARY = "libc++"; 345 | CLANG_ENABLE_MODULES = YES; 346 | CLANG_ENABLE_OBJC_ARC = YES; 347 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 348 | CLANG_WARN_BOOL_CONVERSION = YES; 349 | CLANG_WARN_COMMA = YES; 350 | CLANG_WARN_CONSTANT_CONVERSION = YES; 351 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 352 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 353 | CLANG_WARN_EMPTY_BODY = YES; 354 | CLANG_WARN_ENUM_CONVERSION = YES; 355 | CLANG_WARN_INFINITE_RECURSION = YES; 356 | CLANG_WARN_INT_CONVERSION = YES; 357 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 358 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 359 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 360 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 361 | CLANG_WARN_STRICT_PROTOTYPES = YES; 362 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 363 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 364 | CLANG_WARN_UNREACHABLE_CODE = YES; 365 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 366 | CODE_SIGN_IDENTITY = "iPhone Developer"; 367 | COPY_PHASE_STRIP = NO; 368 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 369 | ENABLE_NS_ASSERTIONS = NO; 370 | ENABLE_STRICT_OBJC_MSGSEND = YES; 371 | GCC_C_LANGUAGE_STANDARD = gnu11; 372 | GCC_NO_COMMON_BLOCKS = YES; 373 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 374 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 375 | GCC_WARN_UNDECLARED_SELECTOR = YES; 376 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 377 | GCC_WARN_UNUSED_FUNCTION = YES; 378 | GCC_WARN_UNUSED_VARIABLE = YES; 379 | IPHONEOS_DEPLOYMENT_TARGET = 11.1; 380 | MTL_ENABLE_DEBUG_INFO = NO; 381 | SDKROOT = iphoneos; 382 | VALIDATE_PRODUCT = YES; 383 | }; 384 | name = Release; 385 | }; 386 | 355DD6821E187F2E00DC8757 /* Debug */ = { 387 | isa = XCBuildConfiguration; 388 | buildSettings = { 389 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 390 | CODE_SIGN_STYLE = Automatic; 391 | DEVELOPMENT_TEAM = 4LUEU97WUC; 392 | INFOPLIST_FILE = TJSecendFloor/Info.plist; 393 | IPHONEOS_DEPLOYMENT_TARGET = 11.0; 394 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 395 | PRODUCT_BUNDLE_IDENTIFIER = tj.TJSecendFloor; 396 | PRODUCT_NAME = "$(TARGET_NAME)"; 397 | TARGETED_DEVICE_FAMILY = "1,2"; 398 | }; 399 | name = Debug; 400 | }; 401 | 355DD6831E187F2E00DC8757 /* Release */ = { 402 | isa = XCBuildConfiguration; 403 | buildSettings = { 404 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 405 | CODE_SIGN_STYLE = Automatic; 406 | DEVELOPMENT_TEAM = 4LUEU97WUC; 407 | INFOPLIST_FILE = TJSecendFloor/Info.plist; 408 | IPHONEOS_DEPLOYMENT_TARGET = 11.0; 409 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 410 | PRODUCT_BUNDLE_IDENTIFIER = tj.TJSecendFloor; 411 | PRODUCT_NAME = "$(TARGET_NAME)"; 412 | TARGETED_DEVICE_FAMILY = "1,2"; 413 | }; 414 | name = Release; 415 | }; 416 | 355DD6851E187F2E00DC8757 /* Debug */ = { 417 | isa = XCBuildConfiguration; 418 | buildSettings = { 419 | CODE_SIGN_STYLE = Automatic; 420 | DEVELOPMENT_TEAM = 4LUEU97WUC; 421 | INFOPLIST_FILE = TJSecendFloorUITests/Info.plist; 422 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 423 | PRODUCT_BUNDLE_IDENTIFIER = tj.TJSecendFloorUITests; 424 | PRODUCT_NAME = "$(TARGET_NAME)"; 425 | TARGETED_DEVICE_FAMILY = "1,2"; 426 | TEST_TARGET_NAME = TJSecendFloor; 427 | }; 428 | name = Debug; 429 | }; 430 | 355DD6861E187F2E00DC8757 /* Release */ = { 431 | isa = XCBuildConfiguration; 432 | buildSettings = { 433 | CODE_SIGN_STYLE = Automatic; 434 | DEVELOPMENT_TEAM = 4LUEU97WUC; 435 | INFOPLIST_FILE = TJSecendFloorUITests/Info.plist; 436 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 437 | PRODUCT_BUNDLE_IDENTIFIER = tj.TJSecendFloorUITests; 438 | PRODUCT_NAME = "$(TARGET_NAME)"; 439 | TARGETED_DEVICE_FAMILY = "1,2"; 440 | TEST_TARGET_NAME = TJSecendFloor; 441 | }; 442 | name = Release; 443 | }; 444 | /* End XCBuildConfiguration section */ 445 | 446 | /* Begin XCConfigurationList section */ 447 | 355DD65B1E187F2D00DC8757 /* Build configuration list for PBXProject "TJSecondFloor" */ = { 448 | isa = XCConfigurationList; 449 | buildConfigurations = ( 450 | 355DD67F1E187F2E00DC8757 /* Debug */, 451 | 355DD6801E187F2E00DC8757 /* Release */, 452 | ); 453 | defaultConfigurationIsVisible = 0; 454 | defaultConfigurationName = Release; 455 | }; 456 | 355DD6811E187F2E00DC8757 /* Build configuration list for PBXNativeTarget "TJSecondFloor" */ = { 457 | isa = XCConfigurationList; 458 | buildConfigurations = ( 459 | 355DD6821E187F2E00DC8757 /* Debug */, 460 | 355DD6831E187F2E00DC8757 /* Release */, 461 | ); 462 | defaultConfigurationIsVisible = 0; 463 | defaultConfigurationName = Release; 464 | }; 465 | 355DD6841E187F2E00DC8757 /* Build configuration list for PBXNativeTarget "TJSecondFloorUITests" */ = { 466 | isa = XCConfigurationList; 467 | buildConfigurations = ( 468 | 355DD6851E187F2E00DC8757 /* Debug */, 469 | 355DD6861E187F2E00DC8757 /* Release */, 470 | ); 471 | defaultConfigurationIsVisible = 0; 472 | defaultConfigurationName = Release; 473 | }; 474 | /* End XCConfigurationList section */ 475 | }; 476 | rootObject = 355DD6581E187F2D00DC8757 /* Project object */; 477 | } 478 | -------------------------------------------------------------------------------- /TJSecendFloor/TJSecondFloor.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /TJSecendFloor/TJSecondFloor.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /TJSecendFloor/TJSecondFloor.xcodeproj/project.xcworkspace/xcuserdata/liqiong.xcuserdatad/UserInterfaceState.xcuserstate: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TownKing/TJSecondFloor/a2cb414b6d6538b8566a64e353310e9a69f23956/TJSecendFloor/TJSecondFloor.xcodeproj/project.xcworkspace/xcuserdata/liqiong.xcuserdatad/UserInterfaceState.xcuserstate -------------------------------------------------------------------------------- /TJSecendFloor/TJSecondFloor.xcodeproj/project.xcworkspace/xcuserdata/town.xcuserdatad/UserInterfaceState.xcuserstate: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TownKing/TJSecondFloor/a2cb414b6d6538b8566a64e353310e9a69f23956/TJSecendFloor/TJSecondFloor.xcodeproj/project.xcworkspace/xcuserdata/town.xcuserdatad/UserInterfaceState.xcuserstate -------------------------------------------------------------------------------- /TJSecendFloor/TJSecondFloor.xcodeproj/project.xcworkspace/xcuserdata/town.xcuserdatad/WorkspaceSettings.xcsettings: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | BuildLocationStyle 6 | UseAppPreferences 7 | CustomBuildLocationType 8 | RelativeToDerivedData 9 | DerivedDataLocationStyle 10 | Default 11 | EnabledFullIndexStoreVisibility 12 | 13 | IssueFilterStyle 14 | ShowActiveSchemeOnly 15 | LiveSourceIssuesEnabled 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /TJSecendFloor/TJSecondFloor.xcodeproj/xcuserdata/liqiong.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | -------------------------------------------------------------------------------- /TJSecendFloor/TJSecondFloor.xcodeproj/xcuserdata/liqiong.xcuserdatad/xcschemes/xcschememanagement.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | SchemeUserState 6 | 7 | TJSecendFloor.xcscheme 8 | 9 | orderHint 10 | 0 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /TJSecendFloor/TJSecondFloor.xcodeproj/xcuserdata/town.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | -------------------------------------------------------------------------------- /TJSecendFloor/TJSecondFloor.xcodeproj/xcuserdata/town.xcuserdatad/xcschemes/xcschememanagement.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | SchemeUserState 6 | 7 | TJSecendFloor.xcscheme 8 | 9 | orderHint 10 | 0 11 | 12 | 13 | 14 | 15 | --------------------------------------------------------------------------------