Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

View Single Post
Old 09-29-2010, 08:46 AM   #29 (permalink)
michael.liebwein
Registered Member
 
Join Date: Sep 2010
Posts: 1
michael.liebwein is on a distinguished road
Default

Quote:
Originally Posted by kum View Post
Great tutorial. However I still have some issues.

I enabled paging so that I could scroll through different views. The problem is that only the first view is able to detect touches and the others can't. Why is this?
This might be the case, when you have not set the size of the scroll view's content view correctly. So if you have a scrollView and a contentView as it's child (containing your different views), you should be doing something along the lines:

Code:
CGRect contentFrame = contentView.frame;
contentFrame.size.width = newWidth; // set new width here
contentFrame.size.height = newHeight; // set new height here
contentView.frame = contentFrame;

scrollView.contentSize = contentView.frame.size;
michael.liebwein is offline   Reply With Quote
 

» Advertisements
» Online Users: 450
15 members and 435 guests
antonwilliams, chits12345, daniljan, darrenshain, ephefei, erdinc27, EvilElf, HaRRis831, ipodphone, jaychoupham, JmayLive, linkmx, Mnadeep, observer247, raymng
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,588
Threads: 94,083
Posts: 402,775
Top Poster: BrianSlick (7,990)
Welcome to our newest member, daniljan
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 01:45 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.