├── BottomTable.xcodeproj ├── project.xcworkspace │ └── contents.xcworkspacedata └── project.pbxproj ├── BottomTable ├── ViewController.h ├── AppDelegate.h ├── main.m ├── Images.xcassets │ └── AppIcon.appiconset │ │ └── Contents.json ├── Info.plist ├── AppDelegate.m ├── Base.lproj │ ├── LaunchScreen.xib │ └── Main.storyboard └── ViewController.m ├── .gitignore ├── BottomTableTests ├── Info.plist └── BottomTableTests.m └── README.md /BottomTable.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /BottomTable/ViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.h 3 | // BottomTable 4 | // 5 | // Created by Brennan Stehling on 8/26/15. 6 | // Copyright (c) 2015 Acme. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface ViewController : UIViewController 12 | 13 | @end 14 | -------------------------------------------------------------------------------- /BottomTable/AppDelegate.h: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.h 3 | // BottomTable 4 | // 5 | // Created by Brennan Stehling on 8/26/15. 6 | // Copyright (c) 2015 Acme. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface AppDelegate : UIResponder 12 | 13 | @property (strong, nonatomic) UIWindow *window; 14 | 15 | @end 16 | -------------------------------------------------------------------------------- /BottomTable/main.m: -------------------------------------------------------------------------------- 1 | // 2 | // main.m 3 | // BottomTable 4 | // 5 | // Created by Brennan Stehling on 8/26/15. 6 | // Copyright (c) 2015 Acme. 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 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Created by https://www.gitignore.io/api/xcode 2 | 3 | ### Xcode ### 4 | # Xcode 5 | # 6 | # gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore 7 | 8 | ## Build generated 9 | build/ 10 | DerivedData 11 | 12 | ## Various settings 13 | *.pbxuser 14 | !default.pbxuser 15 | *.mode1v3 16 | !default.mode1v3 17 | *.mode2v3 18 | !default.mode2v3 19 | *.perspectivev3 20 | !default.perspectivev3 21 | xcuserdata 22 | 23 | ## Other 24 | *.xccheckout 25 | *.moved-aside 26 | *.xcuserstate 27 | 28 | ## CocoaPods 29 | Pods/ 30 | -------------------------------------------------------------------------------- /BottomTableTests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | io.rav.$(PRODUCT_NAME:rfc1034identifier) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | BNDL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | 24 | 25 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Bottom Table 2 | 3 | When the contents of a table view should settle on the bottom it is necessary to push 4 | the content down by setting the top content inset which uses the height of the table 5 | view and the height of the content. 6 | 7 | Older solutions would add up the height of each cell using one of the delegate methods 8 | which can cause a lot of extra processing. And now with autolayout and automatically 9 | sizing cells that option is no longer an option. 10 | 11 | Instead this sample project gets the frame for the last row which makes calculating 12 | the top inset possible. It leverages what the table view is already doing to calculate 13 | the height of the content so calling the method to get the frame of the last cell 14 | is all that is needed. 15 | 16 | ## License 17 | 18 | MIT 19 | 20 | --- 21 | 22 | Brennan Stehling - 2015 23 | http://www.smallsharptools.com/ 24 | 25 | Please excuse the Objective-C. If you'd like to convert it to Swift a PR is welcome. 26 | -------------------------------------------------------------------------------- /BottomTableTests/BottomTableTests.m: -------------------------------------------------------------------------------- 1 | // 2 | // BottomTableTests.m 3 | // BottomTableTests 4 | // 5 | // Created by Brennan Stehling on 8/26/15. 6 | // Copyright (c) 2015 Acme. All rights reserved. 7 | // 8 | 9 | #import 10 | #import 11 | 12 | @interface BottomTableTests : XCTestCase 13 | 14 | @end 15 | 16 | @implementation BottomTableTests 17 | 18 | - (void)setUp { 19 | [super setUp]; 20 | // Put setup code here. This method is called before the invocation of each test method in the class. 21 | } 22 | 23 | - (void)tearDown { 24 | // Put teardown code here. This method is called after the invocation of each test method in the class. 25 | [super tearDown]; 26 | } 27 | 28 | - (void)testExample { 29 | // This is an example of a functional test case. 30 | XCTAssert(YES, @"Pass"); 31 | } 32 | 33 | - (void)testPerformanceExample { 34 | // This is an example of a performance test case. 35 | [self measureBlock:^{ 36 | // Put the code you want to measure the time of here. 37 | }]; 38 | } 39 | 40 | @end 41 | -------------------------------------------------------------------------------- /BottomTable/Images.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "size" : "29x29", 6 | "scale" : "2x" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "size" : "29x29", 11 | "scale" : "3x" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "size" : "40x40", 16 | "scale" : "2x" 17 | }, 18 | { 19 | "idiom" : "iphone", 20 | "size" : "40x40", 21 | "scale" : "3x" 22 | }, 23 | { 24 | "idiom" : "iphone", 25 | "size" : "60x60", 26 | "scale" : "2x" 27 | }, 28 | { 29 | "idiom" : "iphone", 30 | "size" : "60x60", 31 | "scale" : "3x" 32 | }, 33 | { 34 | "idiom" : "ipad", 35 | "size" : "29x29", 36 | "scale" : "1x" 37 | }, 38 | { 39 | "idiom" : "ipad", 40 | "size" : "29x29", 41 | "scale" : "2x" 42 | }, 43 | { 44 | "idiom" : "ipad", 45 | "size" : "40x40", 46 | "scale" : "1x" 47 | }, 48 | { 49 | "idiom" : "ipad", 50 | "size" : "40x40", 51 | "scale" : "2x" 52 | }, 53 | { 54 | "idiom" : "ipad", 55 | "size" : "76x76", 56 | "scale" : "1x" 57 | }, 58 | { 59 | "idiom" : "ipad", 60 | "size" : "76x76", 61 | "scale" : "2x" 62 | } 63 | ], 64 | "info" : { 65 | "version" : 1, 66 | "author" : "xcode" 67 | } 68 | } -------------------------------------------------------------------------------- /BottomTable/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | io.rav.$(PRODUCT_NAME:rfc1034identifier) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | APPL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | LSRequiresIPhoneOS 24 | 25 | UILaunchStoryboardName 26 | LaunchScreen 27 | UIMainStoryboardFile 28 | Main 29 | UIRequiredDeviceCapabilities 30 | 31 | armv7 32 | 33 | UISupportedInterfaceOrientations 34 | 35 | UIInterfaceOrientationPortrait 36 | UIInterfaceOrientationLandscapeLeft 37 | UIInterfaceOrientationLandscapeRight 38 | 39 | UISupportedInterfaceOrientations~ipad 40 | 41 | UIInterfaceOrientationPortrait 42 | UIInterfaceOrientationPortraitUpsideDown 43 | UIInterfaceOrientationLandscapeLeft 44 | UIInterfaceOrientationLandscapeRight 45 | 46 | 47 | 48 | -------------------------------------------------------------------------------- /BottomTable/AppDelegate.m: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.m 3 | // BottomTable 4 | // 5 | // Created by Brennan Stehling on 8/26/15. 6 | // Copyright (c) 2015 Acme. All rights reserved. 7 | // 8 | 9 | #import "AppDelegate.h" 10 | 11 | @interface AppDelegate () 12 | 13 | @end 14 | 15 | @implementation AppDelegate 16 | 17 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { 18 | // Override point for customization after application launch. 19 | return YES; 20 | } 21 | 22 | - (void)applicationWillResignActive:(UIApplication *)application { 23 | // 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. 24 | // Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game. 25 | } 26 | 27 | - (void)applicationDidEnterBackground:(UIApplication *)application { 28 | // 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. 29 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. 30 | } 31 | 32 | - (void)applicationWillEnterForeground:(UIApplication *)application { 33 | // Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background. 34 | } 35 | 36 | - (void)applicationDidBecomeActive:(UIApplication *)application { 37 | // 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. 38 | } 39 | 40 | - (void)applicationWillTerminate:(UIApplication *)application { 41 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. 42 | } 43 | 44 | @end 45 | -------------------------------------------------------------------------------- /BottomTable/Base.lproj/LaunchScreen.xib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 20 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | -------------------------------------------------------------------------------- /BottomTable/ViewController.m: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.m 3 | // BottomTable 4 | // 5 | // Created by Brennan Stehling on 8/26/15. 6 | // Copyright (c) 2015 Acme. All rights reserved. 7 | // 8 | 9 | #import "ViewController.h" 10 | 11 | @interface ViewController () 12 | 13 | @property (weak, nonatomic) IBOutlet UITableView *tableView; 14 | @property (weak, nonatomic) IBOutlet NSLayoutConstraint *markerHeightConstraint; 15 | @property (weak, nonatomic) IBOutlet UIView *markerView; 16 | 17 | @property (strong, nonatomic) NSMutableArray *items; 18 | @property (strong, nonatomic) NSMutableArray *additionalItems; 19 | 20 | @end 21 | 22 | @implementation ViewController 23 | 24 | #pragma mark - View Lifecycle 25 | #pragma mark - 26 | 27 | - (void)viewDidLoad { 28 | [super viewDidLoad]; 29 | // Do any additional setup after loading the view, typically from a nib. 30 | 31 | self.tableView.rowHeight = UITableViewAutomaticDimension; 32 | 33 | // Sample data courtesy of Coffee Ipsum 34 | // http://coffeeipsum.com 35 | 36 | self.items = @[ 37 | @"Shop espresso coffee black cultivar whipped sugar carajillo rich spoon bar grinder.", 38 | @"Sit to go, body, fair trade, java fair trade body percolator to go qui cup turkish.", 39 | @"To go instant, est espresso chicory ut acerbic." 40 | ].mutableCopy; 41 | 42 | self.additionalItems = @[ 43 | @"Seasonal robusta, aged crema frappuccino medium kopi-luwak that aged strong flavour.", 44 | @"Et acerbic brewed turkish aromatic instant, french press seasonal robusta latte blue mountain.", 45 | @"Caffeine id crema, est french press irish turkish milk.", 46 | @"Grinder, grounds qui, coffee et ristretto cream, plunger pot americano body id single shot.", 47 | @"Strong coffee so qui mug saucer strong doppio.", 48 | @"Fair trade and, viennese, arabica, dark and to go brewed galão.", 49 | @"Filter dark aftertaste cup white variety mug variety.", 50 | @"Americano java grinder est black, skinny carajillo frappuccino sit viennese single shot.", 51 | @"Aroma decaffeinated coffee fair trade cup as body at breve cinnamon.", 52 | @"Sweet, ristretto grounds a sugar café au lait mocha.", 53 | @"Coffee in dripper cultivar kopi-luwak seasonal cup single shot.", 54 | @"Spoon, cultivar galão white percolator mug aroma." 55 | ].mutableCopy; 56 | } 57 | 58 | - (void)viewDidAppear:(BOOL)animated { 59 | [super viewDidAppear:animated]; 60 | 61 | dispatch_after(dispatch_time(DISPATCH_TIME_NOW, 1.0 * NSEC_PER_SEC), dispatch_get_main_queue(), ^{ 62 | [self addAnotherRow]; 63 | }); 64 | } 65 | 66 | - (void)viewDidLayoutSubviews { 67 | [self updateContentInsetForTableView:self.tableView animated:NO]; 68 | } 69 | 70 | #pragma mark - UITableViewDataSource 71 | #pragma mark - 72 | 73 | - (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section { 74 | return self.items.count; 75 | } 76 | 77 | - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { 78 | static NSString *CellIdentifier = @"TableCell"; 79 | UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier forIndexPath:indexPath]; 80 | 81 | NSString *item = self.items[indexPath.row]; 82 | UILabel *textLabel = (UILabel *)[cell viewWithTag:1]; 83 | textLabel.text = item; 84 | 85 | return cell; 86 | } 87 | 88 | #pragma mark - UITableViewDelegate 89 | #pragma mark - 90 | 91 | - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath { 92 | 93 | dispatch_after(dispatch_time(DISPATCH_TIME_NOW, 0.25 * NSEC_PER_SEC), dispatch_get_main_queue(), ^{ 94 | [tableView deselectRowAtIndexPath:indexPath animated:YES]; 95 | }); 96 | } 97 | 98 | - (CGFloat)tableView:(UITableView *)tableView estimatedHeightForRowAtIndexPath:(NSIndexPath *)indexPath { 99 | return UITableViewAutomaticDimension; 100 | } 101 | 102 | #pragma mark - Table Helper 103 | #pragma mark - 104 | 105 | - (void)updateContentInsetForTableView:(UITableView *)tableView animated:(BOOL)animated { 106 | NSUInteger lastRow = [self tableView:tableView numberOfRowsInSection:0]; 107 | NSLog(@"last row: %lu", (unsigned long)lastRow); 108 | NSLog(@"items count: %lu", (unsigned long)self.items.count); 109 | 110 | NSUInteger lastIndex = lastRow > 0 ? lastRow - 1 : 0; 111 | 112 | NSIndexPath *lastIndexPath = [NSIndexPath indexPathForItem:lastIndex inSection:0]; 113 | CGRect lastCellFrame = [self.tableView rectForRowAtIndexPath:lastIndexPath]; 114 | 115 | // top inset = table view height - top position of last cell - last cell height 116 | CGFloat topInset = MAX(CGRectGetHeight(self.tableView.frame) - lastCellFrame.origin.y - CGRectGetHeight(lastCellFrame), 0); 117 | 118 | // What about this way? (Did not work when tested) 119 | // CGFloat topInset = MAX(CGRectGetHeight(self.tableView.frame) - self.tableView.contentSize.height, 0); 120 | 121 | NSLog(@"top inset: %f", topInset); 122 | 123 | UIEdgeInsets contentInset = tableView.contentInset; 124 | contentInset.top = topInset; 125 | NSLog(@"inset: %f, %f : %f, %f", contentInset.top, contentInset.bottom, contentInset.left, contentInset.right); 126 | 127 | NSLog(@"table height: %f", CGRectGetHeight(self.tableView.frame)); 128 | 129 | UIViewAnimationOptions options = UIViewAnimationOptionBeginFromCurrentState; 130 | [UIView animateWithDuration:animated ? 0.25 : 0.0 delay:0.0 options:options animations:^{ 131 | self.markerHeightConstraint.constant = ABS(topInset); 132 | tableView.contentInset = contentInset; 133 | 134 | [self.markerView setNeedsLayout]; 135 | [self.markerView layoutIfNeeded]; 136 | } completion:^(BOOL finished) { 137 | }]; 138 | } 139 | 140 | - (void)addAnotherRow { 141 | if (self.additionalItems.count) { 142 | NSString *item = self.additionalItems.firstObject; 143 | [self.additionalItems removeObjectAtIndex:0]; 144 | [self.items addObject:item]; 145 | NSIndexPath *indexPath = [NSIndexPath indexPathForItem:(self.items.count - 1) inSection:0]; 146 | [self.tableView beginUpdates]; 147 | [self.tableView insertRowsAtIndexPaths:@[indexPath] withRowAnimation:UITableViewRowAnimationAutomatic]; 148 | [self.tableView endUpdates]; 149 | [self updateContentInsetForTableView:self.tableView animated:YES]; 150 | 151 | // TODO: if the scroll offset was at the bottom it can be scrolled down (allow user to scroll up and not override them) 152 | 153 | [self.tableView scrollToRowAtIndexPath:indexPath atScrollPosition:UITableViewScrollPositionBottom animated:YES]; 154 | } 155 | 156 | if (self.additionalItems.count) { 157 | [self performSelector:@selector(addAnotherRow) withObject:nil afterDelay:0.5]; 158 | } 159 | } 160 | 161 | @end 162 | -------------------------------------------------------------------------------- /BottomTable/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 | 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 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | -------------------------------------------------------------------------------- /BottomTable.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 261A32421B8E0DA7007CF361 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 261A32411B8E0DA7007CF361 /* main.m */; }; 11 | 261A32451B8E0DA7007CF361 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 261A32441B8E0DA7007CF361 /* AppDelegate.m */; }; 12 | 261A32481B8E0DA7007CF361 /* ViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 261A32471B8E0DA7007CF361 /* ViewController.m */; }; 13 | 261A324B1B8E0DA7007CF361 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 261A32491B8E0DA7007CF361 /* Main.storyboard */; }; 14 | 261A324D1B8E0DA7007CF361 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 261A324C1B8E0DA7007CF361 /* Images.xcassets */; }; 15 | 261A32501B8E0DA7007CF361 /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = 261A324E1B8E0DA7007CF361 /* LaunchScreen.xib */; }; 16 | 261A325C1B8E0DA7007CF361 /* BottomTableTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 261A325B1B8E0DA7007CF361 /* BottomTableTests.m */; }; 17 | /* End PBXBuildFile section */ 18 | 19 | /* Begin PBXContainerItemProxy section */ 20 | 261A32561B8E0DA7007CF361 /* PBXContainerItemProxy */ = { 21 | isa = PBXContainerItemProxy; 22 | containerPortal = 261A32341B8E0DA7007CF361 /* Project object */; 23 | proxyType = 1; 24 | remoteGlobalIDString = 261A323B1B8E0DA7007CF361; 25 | remoteInfo = BottomTable; 26 | }; 27 | /* End PBXContainerItemProxy section */ 28 | 29 | /* Begin PBXFileReference section */ 30 | 261A323C1B8E0DA7007CF361 /* BottomTable.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = BottomTable.app; sourceTree = BUILT_PRODUCTS_DIR; }; 31 | 261A32401B8E0DA7007CF361 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 32 | 261A32411B8E0DA7007CF361 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; 33 | 261A32431B8E0DA7007CF361 /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; }; 34 | 261A32441B8E0DA7007CF361 /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; }; 35 | 261A32461B8E0DA7007CF361 /* ViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ViewController.h; sourceTree = ""; }; 36 | 261A32471B8E0DA7007CF361 /* ViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ViewController.m; sourceTree = ""; }; 37 | 261A324A1B8E0DA7007CF361 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 38 | 261A324C1B8E0DA7007CF361 /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = ""; }; 39 | 261A324F1B8E0DA7007CF361 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/LaunchScreen.xib; sourceTree = ""; }; 40 | 261A32551B8E0DA7007CF361 /* BottomTableTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = BottomTableTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 41 | 261A325A1B8E0DA7007CF361 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 42 | 261A325B1B8E0DA7007CF361 /* BottomTableTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = BottomTableTests.m; sourceTree = ""; }; 43 | /* End PBXFileReference section */ 44 | 45 | /* Begin PBXFrameworksBuildPhase section */ 46 | 261A32391B8E0DA7007CF361 /* Frameworks */ = { 47 | isa = PBXFrameworksBuildPhase; 48 | buildActionMask = 2147483647; 49 | files = ( 50 | ); 51 | runOnlyForDeploymentPostprocessing = 0; 52 | }; 53 | 261A32521B8E0DA7007CF361 /* Frameworks */ = { 54 | isa = PBXFrameworksBuildPhase; 55 | buildActionMask = 2147483647; 56 | files = ( 57 | ); 58 | runOnlyForDeploymentPostprocessing = 0; 59 | }; 60 | /* End PBXFrameworksBuildPhase section */ 61 | 62 | /* Begin PBXGroup section */ 63 | 261A32331B8E0DA7007CF361 = { 64 | isa = PBXGroup; 65 | children = ( 66 | 261A323E1B8E0DA7007CF361 /* BottomTable */, 67 | 261A32581B8E0DA7007CF361 /* BottomTableTests */, 68 | 261A323D1B8E0DA7007CF361 /* Products */, 69 | ); 70 | sourceTree = ""; 71 | }; 72 | 261A323D1B8E0DA7007CF361 /* Products */ = { 73 | isa = PBXGroup; 74 | children = ( 75 | 261A323C1B8E0DA7007CF361 /* BottomTable.app */, 76 | 261A32551B8E0DA7007CF361 /* BottomTableTests.xctest */, 77 | ); 78 | name = Products; 79 | sourceTree = ""; 80 | }; 81 | 261A323E1B8E0DA7007CF361 /* BottomTable */ = { 82 | isa = PBXGroup; 83 | children = ( 84 | 261A32431B8E0DA7007CF361 /* AppDelegate.h */, 85 | 261A32441B8E0DA7007CF361 /* AppDelegate.m */, 86 | 261A32461B8E0DA7007CF361 /* ViewController.h */, 87 | 261A32471B8E0DA7007CF361 /* ViewController.m */, 88 | 261A32491B8E0DA7007CF361 /* Main.storyboard */, 89 | 261A324C1B8E0DA7007CF361 /* Images.xcassets */, 90 | 261A324E1B8E0DA7007CF361 /* LaunchScreen.xib */, 91 | 261A323F1B8E0DA7007CF361 /* Supporting Files */, 92 | ); 93 | path = BottomTable; 94 | sourceTree = ""; 95 | }; 96 | 261A323F1B8E0DA7007CF361 /* Supporting Files */ = { 97 | isa = PBXGroup; 98 | children = ( 99 | 261A32401B8E0DA7007CF361 /* Info.plist */, 100 | 261A32411B8E0DA7007CF361 /* main.m */, 101 | ); 102 | name = "Supporting Files"; 103 | sourceTree = ""; 104 | }; 105 | 261A32581B8E0DA7007CF361 /* BottomTableTests */ = { 106 | isa = PBXGroup; 107 | children = ( 108 | 261A325B1B8E0DA7007CF361 /* BottomTableTests.m */, 109 | 261A32591B8E0DA7007CF361 /* Supporting Files */, 110 | ); 111 | path = BottomTableTests; 112 | sourceTree = ""; 113 | }; 114 | 261A32591B8E0DA7007CF361 /* Supporting Files */ = { 115 | isa = PBXGroup; 116 | children = ( 117 | 261A325A1B8E0DA7007CF361 /* Info.plist */, 118 | ); 119 | name = "Supporting Files"; 120 | sourceTree = ""; 121 | }; 122 | /* End PBXGroup section */ 123 | 124 | /* Begin PBXNativeTarget section */ 125 | 261A323B1B8E0DA7007CF361 /* BottomTable */ = { 126 | isa = PBXNativeTarget; 127 | buildConfigurationList = 261A325F1B8E0DA7007CF361 /* Build configuration list for PBXNativeTarget "BottomTable" */; 128 | buildPhases = ( 129 | 261A32381B8E0DA7007CF361 /* Sources */, 130 | 261A32391B8E0DA7007CF361 /* Frameworks */, 131 | 261A323A1B8E0DA7007CF361 /* Resources */, 132 | ); 133 | buildRules = ( 134 | ); 135 | dependencies = ( 136 | ); 137 | name = BottomTable; 138 | productName = BottomTable; 139 | productReference = 261A323C1B8E0DA7007CF361 /* BottomTable.app */; 140 | productType = "com.apple.product-type.application"; 141 | }; 142 | 261A32541B8E0DA7007CF361 /* BottomTableTests */ = { 143 | isa = PBXNativeTarget; 144 | buildConfigurationList = 261A32621B8E0DA7007CF361 /* Build configuration list for PBXNativeTarget "BottomTableTests" */; 145 | buildPhases = ( 146 | 261A32511B8E0DA7007CF361 /* Sources */, 147 | 261A32521B8E0DA7007CF361 /* Frameworks */, 148 | 261A32531B8E0DA7007CF361 /* Resources */, 149 | ); 150 | buildRules = ( 151 | ); 152 | dependencies = ( 153 | 261A32571B8E0DA7007CF361 /* PBXTargetDependency */, 154 | ); 155 | name = BottomTableTests; 156 | productName = BottomTableTests; 157 | productReference = 261A32551B8E0DA7007CF361 /* BottomTableTests.xctest */; 158 | productType = "com.apple.product-type.bundle.unit-test"; 159 | }; 160 | /* End PBXNativeTarget section */ 161 | 162 | /* Begin PBXProject section */ 163 | 261A32341B8E0DA7007CF361 /* Project object */ = { 164 | isa = PBXProject; 165 | attributes = { 166 | LastUpgradeCheck = 0640; 167 | ORGANIZATIONNAME = Acme; 168 | TargetAttributes = { 169 | 261A323B1B8E0DA7007CF361 = { 170 | CreatedOnToolsVersion = 6.4; 171 | }; 172 | 261A32541B8E0DA7007CF361 = { 173 | CreatedOnToolsVersion = 6.4; 174 | TestTargetID = 261A323B1B8E0DA7007CF361; 175 | }; 176 | }; 177 | }; 178 | buildConfigurationList = 261A32371B8E0DA7007CF361 /* Build configuration list for PBXProject "BottomTable" */; 179 | compatibilityVersion = "Xcode 3.2"; 180 | developmentRegion = English; 181 | hasScannedForEncodings = 0; 182 | knownRegions = ( 183 | en, 184 | Base, 185 | ); 186 | mainGroup = 261A32331B8E0DA7007CF361; 187 | productRefGroup = 261A323D1B8E0DA7007CF361 /* Products */; 188 | projectDirPath = ""; 189 | projectRoot = ""; 190 | targets = ( 191 | 261A323B1B8E0DA7007CF361 /* BottomTable */, 192 | 261A32541B8E0DA7007CF361 /* BottomTableTests */, 193 | ); 194 | }; 195 | /* End PBXProject section */ 196 | 197 | /* Begin PBXResourcesBuildPhase section */ 198 | 261A323A1B8E0DA7007CF361 /* Resources */ = { 199 | isa = PBXResourcesBuildPhase; 200 | buildActionMask = 2147483647; 201 | files = ( 202 | 261A324B1B8E0DA7007CF361 /* Main.storyboard in Resources */, 203 | 261A32501B8E0DA7007CF361 /* LaunchScreen.xib in Resources */, 204 | 261A324D1B8E0DA7007CF361 /* Images.xcassets in Resources */, 205 | ); 206 | runOnlyForDeploymentPostprocessing = 0; 207 | }; 208 | 261A32531B8E0DA7007CF361 /* Resources */ = { 209 | isa = PBXResourcesBuildPhase; 210 | buildActionMask = 2147483647; 211 | files = ( 212 | ); 213 | runOnlyForDeploymentPostprocessing = 0; 214 | }; 215 | /* End PBXResourcesBuildPhase section */ 216 | 217 | /* Begin PBXSourcesBuildPhase section */ 218 | 261A32381B8E0DA7007CF361 /* Sources */ = { 219 | isa = PBXSourcesBuildPhase; 220 | buildActionMask = 2147483647; 221 | files = ( 222 | 261A32481B8E0DA7007CF361 /* ViewController.m in Sources */, 223 | 261A32451B8E0DA7007CF361 /* AppDelegate.m in Sources */, 224 | 261A32421B8E0DA7007CF361 /* main.m in Sources */, 225 | ); 226 | runOnlyForDeploymentPostprocessing = 0; 227 | }; 228 | 261A32511B8E0DA7007CF361 /* Sources */ = { 229 | isa = PBXSourcesBuildPhase; 230 | buildActionMask = 2147483647; 231 | files = ( 232 | 261A325C1B8E0DA7007CF361 /* BottomTableTests.m in Sources */, 233 | ); 234 | runOnlyForDeploymentPostprocessing = 0; 235 | }; 236 | /* End PBXSourcesBuildPhase section */ 237 | 238 | /* Begin PBXTargetDependency section */ 239 | 261A32571B8E0DA7007CF361 /* PBXTargetDependency */ = { 240 | isa = PBXTargetDependency; 241 | target = 261A323B1B8E0DA7007CF361 /* BottomTable */; 242 | targetProxy = 261A32561B8E0DA7007CF361 /* PBXContainerItemProxy */; 243 | }; 244 | /* End PBXTargetDependency section */ 245 | 246 | /* Begin PBXVariantGroup section */ 247 | 261A32491B8E0DA7007CF361 /* Main.storyboard */ = { 248 | isa = PBXVariantGroup; 249 | children = ( 250 | 261A324A1B8E0DA7007CF361 /* Base */, 251 | ); 252 | name = Main.storyboard; 253 | sourceTree = ""; 254 | }; 255 | 261A324E1B8E0DA7007CF361 /* LaunchScreen.xib */ = { 256 | isa = PBXVariantGroup; 257 | children = ( 258 | 261A324F1B8E0DA7007CF361 /* Base */, 259 | ); 260 | name = LaunchScreen.xib; 261 | sourceTree = ""; 262 | }; 263 | /* End PBXVariantGroup section */ 264 | 265 | /* Begin XCBuildConfiguration section */ 266 | 261A325D1B8E0DA7007CF361 /* Debug */ = { 267 | isa = XCBuildConfiguration; 268 | buildSettings = { 269 | ALWAYS_SEARCH_USER_PATHS = NO; 270 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 271 | CLANG_CXX_LIBRARY = "libc++"; 272 | CLANG_ENABLE_MODULES = YES; 273 | CLANG_ENABLE_OBJC_ARC = YES; 274 | CLANG_WARN_BOOL_CONVERSION = YES; 275 | CLANG_WARN_CONSTANT_CONVERSION = YES; 276 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 277 | CLANG_WARN_EMPTY_BODY = YES; 278 | CLANG_WARN_ENUM_CONVERSION = YES; 279 | CLANG_WARN_INT_CONVERSION = YES; 280 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 281 | CLANG_WARN_UNREACHABLE_CODE = YES; 282 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 283 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 284 | COPY_PHASE_STRIP = NO; 285 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 286 | ENABLE_STRICT_OBJC_MSGSEND = YES; 287 | GCC_C_LANGUAGE_STANDARD = gnu99; 288 | GCC_DYNAMIC_NO_PIC = NO; 289 | GCC_NO_COMMON_BLOCKS = YES; 290 | GCC_OPTIMIZATION_LEVEL = 0; 291 | GCC_PREPROCESSOR_DEFINITIONS = ( 292 | "DEBUG=1", 293 | "$(inherited)", 294 | ); 295 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 296 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 297 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 298 | GCC_WARN_UNDECLARED_SELECTOR = YES; 299 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 300 | GCC_WARN_UNUSED_FUNCTION = YES; 301 | GCC_WARN_UNUSED_VARIABLE = YES; 302 | IPHONEOS_DEPLOYMENT_TARGET = 8.4; 303 | MTL_ENABLE_DEBUG_INFO = YES; 304 | ONLY_ACTIVE_ARCH = YES; 305 | SDKROOT = iphoneos; 306 | TARGETED_DEVICE_FAMILY = "1,2"; 307 | }; 308 | name = Debug; 309 | }; 310 | 261A325E1B8E0DA7007CF361 /* Release */ = { 311 | isa = XCBuildConfiguration; 312 | buildSettings = { 313 | ALWAYS_SEARCH_USER_PATHS = NO; 314 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 315 | CLANG_CXX_LIBRARY = "libc++"; 316 | CLANG_ENABLE_MODULES = YES; 317 | CLANG_ENABLE_OBJC_ARC = YES; 318 | CLANG_WARN_BOOL_CONVERSION = YES; 319 | CLANG_WARN_CONSTANT_CONVERSION = YES; 320 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 321 | CLANG_WARN_EMPTY_BODY = YES; 322 | CLANG_WARN_ENUM_CONVERSION = YES; 323 | CLANG_WARN_INT_CONVERSION = YES; 324 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 325 | CLANG_WARN_UNREACHABLE_CODE = YES; 326 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 327 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 328 | COPY_PHASE_STRIP = NO; 329 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 330 | ENABLE_NS_ASSERTIONS = NO; 331 | ENABLE_STRICT_OBJC_MSGSEND = YES; 332 | GCC_C_LANGUAGE_STANDARD = gnu99; 333 | GCC_NO_COMMON_BLOCKS = YES; 334 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 335 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 336 | GCC_WARN_UNDECLARED_SELECTOR = YES; 337 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 338 | GCC_WARN_UNUSED_FUNCTION = YES; 339 | GCC_WARN_UNUSED_VARIABLE = YES; 340 | IPHONEOS_DEPLOYMENT_TARGET = 8.4; 341 | MTL_ENABLE_DEBUG_INFO = NO; 342 | SDKROOT = iphoneos; 343 | TARGETED_DEVICE_FAMILY = "1,2"; 344 | VALIDATE_PRODUCT = YES; 345 | }; 346 | name = Release; 347 | }; 348 | 261A32601B8E0DA7007CF361 /* Debug */ = { 349 | isa = XCBuildConfiguration; 350 | buildSettings = { 351 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 352 | INFOPLIST_FILE = BottomTable/Info.plist; 353 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 354 | PRODUCT_NAME = "$(TARGET_NAME)"; 355 | }; 356 | name = Debug; 357 | }; 358 | 261A32611B8E0DA7007CF361 /* Release */ = { 359 | isa = XCBuildConfiguration; 360 | buildSettings = { 361 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 362 | INFOPLIST_FILE = BottomTable/Info.plist; 363 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 364 | PRODUCT_NAME = "$(TARGET_NAME)"; 365 | }; 366 | name = Release; 367 | }; 368 | 261A32631B8E0DA7007CF361 /* Debug */ = { 369 | isa = XCBuildConfiguration; 370 | buildSettings = { 371 | BUNDLE_LOADER = "$(TEST_HOST)"; 372 | FRAMEWORK_SEARCH_PATHS = ( 373 | "$(SDKROOT)/Developer/Library/Frameworks", 374 | "$(inherited)", 375 | ); 376 | GCC_PREPROCESSOR_DEFINITIONS = ( 377 | "DEBUG=1", 378 | "$(inherited)", 379 | ); 380 | INFOPLIST_FILE = BottomTableTests/Info.plist; 381 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 382 | PRODUCT_NAME = "$(TARGET_NAME)"; 383 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/BottomTable.app/BottomTable"; 384 | }; 385 | name = Debug; 386 | }; 387 | 261A32641B8E0DA7007CF361 /* Release */ = { 388 | isa = XCBuildConfiguration; 389 | buildSettings = { 390 | BUNDLE_LOADER = "$(TEST_HOST)"; 391 | FRAMEWORK_SEARCH_PATHS = ( 392 | "$(SDKROOT)/Developer/Library/Frameworks", 393 | "$(inherited)", 394 | ); 395 | INFOPLIST_FILE = BottomTableTests/Info.plist; 396 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 397 | PRODUCT_NAME = "$(TARGET_NAME)"; 398 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/BottomTable.app/BottomTable"; 399 | }; 400 | name = Release; 401 | }; 402 | /* End XCBuildConfiguration section */ 403 | 404 | /* Begin XCConfigurationList section */ 405 | 261A32371B8E0DA7007CF361 /* Build configuration list for PBXProject "BottomTable" */ = { 406 | isa = XCConfigurationList; 407 | buildConfigurations = ( 408 | 261A325D1B8E0DA7007CF361 /* Debug */, 409 | 261A325E1B8E0DA7007CF361 /* Release */, 410 | ); 411 | defaultConfigurationIsVisible = 0; 412 | defaultConfigurationName = Release; 413 | }; 414 | 261A325F1B8E0DA7007CF361 /* Build configuration list for PBXNativeTarget "BottomTable" */ = { 415 | isa = XCConfigurationList; 416 | buildConfigurations = ( 417 | 261A32601B8E0DA7007CF361 /* Debug */, 418 | 261A32611B8E0DA7007CF361 /* Release */, 419 | ); 420 | defaultConfigurationIsVisible = 0; 421 | }; 422 | 261A32621B8E0DA7007CF361 /* Build configuration list for PBXNativeTarget "BottomTableTests" */ = { 423 | isa = XCConfigurationList; 424 | buildConfigurations = ( 425 | 261A32631B8E0DA7007CF361 /* Debug */, 426 | 261A32641B8E0DA7007CF361 /* Release */, 427 | ); 428 | defaultConfigurationIsVisible = 0; 429 | }; 430 | /* End XCConfigurationList section */ 431 | }; 432 | rootObject = 261A32341B8E0DA7007CF361 /* Project object */; 433 | } 434 | --------------------------------------------------------------------------------