From aac3ce224a06259c2148e1789f6cb379ec32c167 Mon Sep 17 00:00:00 2001 From: Kyle Fang Date: Tue, 26 Feb 2013 11:07:50 +0800 Subject: [PATCH] Added content --- ZGPullDragTableView/DemoTableViewController.m | 92 ++------------ .../ZGPullDragTableView-Info.plist | 2 - .../en.lproj/MainStoryboard.storyboard | 116 +++++++++++++++--- 3 files changed, 106 insertions(+), 104 deletions(-) diff --git a/ZGPullDragTableView/DemoTableViewController.m b/ZGPullDragTableView/DemoTableViewController.m index 5c18f7e..ecd1952 100644 --- a/ZGPullDragTableView/DemoTableViewController.m +++ b/ZGPullDragTableView/DemoTableViewController.m @@ -23,6 +23,14 @@ return self; } +- (UIView *)tableView:(UITableView *)tableView viewForFooterInSection:(NSInteger)section{ + return [[UIView alloc] init]; +} + +- (CGFloat )tableView:(UITableView *)tableView heightForFooterInSection:(NSInteger)section{ + return 1; +} + - (void)viewDidLoad { [super viewDidLoad]; @@ -34,88 +42,4 @@ // self.navigationItem.rightBarButtonItem = self.editButtonItem; } -- (void)didReceiveMemoryWarning -{ - [super didReceiveMemoryWarning]; - // Dispose of any resources that can be recreated. -} - -#pragma mark - Table view data source - -- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView -{ -#warning Potentially incomplete method implementation. - // Return the number of sections. - return 0; -} - -- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section -{ -#warning Incomplete method implementation. - // Return the number of rows in the section. - return 0; -} - -- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath -{ - static NSString *CellIdentifier = @"Cell"; - UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier forIndexPath:indexPath]; - - // Configure the cell... - - return cell; -} - -/* -// Override to support conditional editing of the table view. -- (BOOL)tableView:(UITableView *)tableView canEditRowAtIndexPath:(NSIndexPath *)indexPath -{ - // Return NO if you do not want the specified item to be editable. - return YES; -} -*/ - -/* -// Override to support editing the table view. -- (void)tableView:(UITableView *)tableView commitEditingStyle:(UITableViewCellEditingStyle)editingStyle forRowAtIndexPath:(NSIndexPath *)indexPath -{ - if (editingStyle == UITableViewCellEditingStyleDelete) { - // Delete the row from the data source - [tableView deleteRowsAtIndexPaths:@[indexPath] withRowAnimation:UITableViewRowAnimationFade]; - } - else if (editingStyle == UITableViewCellEditingStyleInsert) { - // Create a new instance of the appropriate class, insert it into the array, and add a new row to the table view - } -} -*/ - -/* -// Override to support rearranging the table view. -- (void)tableView:(UITableView *)tableView moveRowAtIndexPath:(NSIndexPath *)fromIndexPath toIndexPath:(NSIndexPath *)toIndexPath -{ -} -*/ - -/* -// Override to support conditional rearranging of the table view. -- (BOOL)tableView:(UITableView *)tableView canMoveRowAtIndexPath:(NSIndexPath *)indexPath -{ - // Return NO if you do not want the item to be re-orderable. - return YES; -} -*/ - -#pragma mark - Table view delegate - -- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath -{ - // Navigation logic may go here. Create and push another view controller. - /* - <#DetailViewController#> *detailViewController = [[<#DetailViewController#> alloc] initWithNibName:@"<#Nib name#>" bundle:nil]; - // ... - // Pass the selected object to the new view controller. - [self.navigationController pushViewController:detailViewController animated:YES]; - */ -} - @end diff --git a/ZGPullDragTableView/ZGPullDragTableView-Info.plist b/ZGPullDragTableView/ZGPullDragTableView-Info.plist index 6e844e6..cb4e931 100644 --- a/ZGPullDragTableView/ZGPullDragTableView-Info.plist +++ b/ZGPullDragTableView/ZGPullDragTableView-Info.plist @@ -33,8 +33,6 @@ UISupportedInterfaceOrientations UIInterfaceOrientationPortrait - UIInterfaceOrientationLandscapeLeft - UIInterfaceOrientationLandscapeRight diff --git a/ZGPullDragTableView/en.lproj/MainStoryboard.storyboard b/ZGPullDragTableView/en.lproj/MainStoryboard.storyboard index 23cc67b..a6ee671 100644 --- a/ZGPullDragTableView/en.lproj/MainStoryboard.storyboard +++ b/ZGPullDragTableView/en.lproj/MainStoryboard.storyboard @@ -1,5 +1,5 @@ - + @@ -8,21 +8,106 @@ - + - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -34,11 +119,6 @@ - - - - -