From 7c89dd531464119a9c18cf3bd12f0a441d9f35c5 Mon Sep 17 00:00:00 2001 From: Eddie Ehlin Date: Wed, 6 Feb 2013 20:17:27 +0100 Subject: Bug fix: Bean collection extraction view's tableview is now expanded correctly. All text inputs are also utilizing capitalizations on sentences. --- iBean/iBean.xcodeproj/project.pbxproj | 8 ++++ .../UserInterfaceState.xcuserstate | Bin 64019 -> 66883 bytes iBean/iBean/BeanCollectionExtractionScrollView.m | 5 ++- iBean/iBean/iPhoneStoryboard.storyboard | 41 +++++++++++---------- 4 files changed, 33 insertions(+), 21 deletions(-) diff --git a/iBean/iBean.xcodeproj/project.pbxproj b/iBean/iBean.xcodeproj/project.pbxproj index 65dc07f..64c42d5 100644 --- a/iBean/iBean.xcodeproj/project.pbxproj +++ b/iBean/iBean.xcodeproj/project.pbxproj @@ -159,6 +159,7 @@ 020C559F1691014E00D8224C /* iBean */ = { isa = PBXGroup; children = ( + 024CB02216C0543B009CBC15 /* Graphics */, 024CB02116C04BDD009CBC15 /* Categories */, 0276253316B58C2C00EE2F4E /* Settings */, 020C55D31695C2C800D8224C /* iBean */, @@ -304,6 +305,13 @@ name = Categories; sourceTree = ""; }; + 024CB02216C0543B009CBC15 /* Graphics */ = { + isa = PBXGroup; + children = ( + ); + name = Graphics; + sourceTree = ""; + }; 0276253316B58C2C00EE2F4E /* Settings */ = { isa = PBXGroup; children = ( diff --git a/iBean/iBean.xcodeproj/project.xcworkspace/xcuserdata/eddiex.xcuserdatad/UserInterfaceState.xcuserstate b/iBean/iBean.xcodeproj/project.xcworkspace/xcuserdata/eddiex.xcuserdatad/UserInterfaceState.xcuserstate index 1776333..5e4e5cb 100644 Binary files a/iBean/iBean.xcodeproj/project.xcworkspace/xcuserdata/eddiex.xcuserdatad/UserInterfaceState.xcuserstate and b/iBean/iBean.xcodeproj/project.xcworkspace/xcuserdata/eddiex.xcuserdatad/UserInterfaceState.xcuserstate differ diff --git a/iBean/iBean/BeanCollectionExtractionScrollView.m b/iBean/iBean/BeanCollectionExtractionScrollView.m index 4833814..5a7b024 100644 --- a/iBean/iBean/BeanCollectionExtractionScrollView.m +++ b/iBean/iBean/BeanCollectionExtractionScrollView.m @@ -25,7 +25,10 @@ //Resize the UITableView containing all the beans UITableView *bt = [self.subviews objectAtIndex:0]; - bt.frame = CGRectMake(bt.frame.origin.x, bt.frame.origin.y, bt.frame.size.width, [bt numberOfRowsInSection:0]*60+20); + //1 - Set the height of the table cells + [bt setRowHeight:60.0f]; + //2 - Calculate the total height for the tableview (i.e.: numberOfRows*rowHeight) + bt.frame = CGRectMake(bt.frame.origin.x, bt.frame.origin.y, bt.frame.size.width, [bt numberOfRowsInSection:0]*bt.rowHeight); //Move down the note text view, so that it don't overlaps the table. UITextView *note = [self.subviews objectAtIndex:1]; diff --git a/iBean/iBean/iPhoneStoryboard.storyboard b/iBean/iBean/iPhoneStoryboard.storyboard index bb8cece..a4b3309 100644 --- a/iBean/iBean/iPhoneStoryboard.storyboard +++ b/iBean/iBean/iPhoneStoryboard.storyboard @@ -257,6 +257,7 @@