Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 6    Views: 68

Alex@TM
Apple Fan
Profile
Posts: 956
Reg: Dec 20, 2011
London, UK
10,560
07/02/13 10:21 AM (12 years ago)

Developer help UIScrollView

Hi guys! I'm having an issue with UIScrollView and just cant figure it out! Ive got a tab bar app in whcih I have 5 tabs. All 5 have UIScrollView working well. In these i'm .h IBOutlet UIScrollView *scrollView; .m -(void)viewWillAppear:(BOOL)animated{ [scrollView setFrame:CGRectMake(0,0,320,self.view.frame.size.height)]; [scrollView setFrame:CGRectMake(0, 0, 320, 3050)]; } -(void)viewDidAppear:(BOOL)animated { [scrollView setScrollEnabled:YES]; [scrollView setContentSize:CGSizeMake(320, 3050)]; } The nib file has the UIScrollView as 320, 1857 and everything works a treat. On the fifth tab i'm using a scrollview to create essentially a graphical tableview. On hitting the next view with -(IBAction) pushButton:(id)sender { InsViewController *screen = [[InsViewController alloc] initWithNibName:nil bundle:nil]; //screen.modalTransitionStyle = UIModalTransitionStyleCrossDissolve; [self presentModalViewController:screen animated:YES]; [screen release]; } This works fine and we are going to the next view which is outside of the tab bar. Now I have the same code for the scroll which works fine, if I add no content. If I add content, any content the scroll will not work if it is set anything above a height of 501! This is the case for both iPhone 4 and 5! Any ideas would be sincerely appreciated. All the best.
 
mrDavid
BTMods.com
Profile
Posts: 3936
Reg: May 21, 2011
San Diego, CA
51,910
like
11/11/13 09:08 AM (12 years ago)
Hey Alex, Is this still happening? Let me know. David https://buzztouchmods.com/market
 
Alex@TM
Apple Fan
Profile
Posts: 956
Reg: Dec 20, 2011
London, UK
10,560
like
11/11/13 09:19 AM (12 years ago)
Pretty sure it will be but have found an alternative for now, thanks!
 
mrDavid
BTMods.com
Profile
Posts: 3936
Reg: May 21, 2011
San Diego, CA
51,910
like
11/11/13 09:20 AM (12 years ago)
Oh, gotcha, that's always good! No problem! Cheers, David https://buzztouchmods.com/market
 
Alex@TM
Apple Fan
Profile
Posts: 956
Reg: Dec 20, 2011
London, UK
10,560
like
11/11/13 09:24 AM (12 years ago)
Thanks for looking in :)
 
mrDavid
BTMods.com
Profile
Posts: 3936
Reg: May 21, 2011
San Diego, CA
51,910
like
11/11/13 11:05 AM (12 years ago)
You got it.. you might get more emails from me from years old threads.. LOL. Cheers, David https://buzztouchmods.com/market
 
Alex@TM
Apple Fan
Profile
Posts: 956
Reg: Dec 20, 2011
London, UK
10,560
like
11/11/13 01:52 PM (12 years ago)
Cool :)
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.