12-27-2009, 03:35 PM
#1 (permalink )
Registered Member
Join Date: Nov 2009
Posts: 30
PageControl and ScrollView and UIView
Hi,
I've been through the Apple's PageControl tutorial but didn't find an answer to my question.
Is it possible to go through different View (created with IB) on a View.
I have a tab bar application, in one of the tab bar view, I would like the user to be able to flip through many other view.
Is this possible ? If yes, how ?
TIA
12-28-2009, 02:51 AM
#2 (permalink )
Registered Member
Join Date: Feb 2009
Posts: 78
Yes, that is possible.
One way to do it, if I have understood what you want correctly, would be to have a UIScrollView as that view and add the various views they will flip though to it as subViews. You would probably want pagingEnabled = YES for the scroll view.
I don't know how to implement that in IB though because I don't know how to use IB. I just do views manually myself.
12-28-2009, 03:26 AM
#3 (permalink )
Registered Member
Join Date: Nov 2009
Posts: 30
Ok thanks, if needed, I can bypass IB, I'll probably learn more this way.
And if I manually program subviews, I can add whatever UI elements I need on them ?
12-28-2009, 03:41 AM
#4 (permalink )
Registered Member
Join Date: Feb 2009
Posts: 78
Quote:
Originally Posted by
geeo
Ok thanks, if needed, I can bypass IB, I'll probably learn more this way.
And if I manually program subviews, I can add whatever UI elements I need on them ?
Yes, you can add any elements to subviews that you make manually. I don't know of anything that you can't do manually.
12-28-2009, 03:42 AM
#5 (permalink )
Registered Member
Join Date: Nov 2009
Posts: 30
A last request, have you any good tutorial about UI programming ? Because for the moment, I've been using IB exclusively.
12-28-2009, 04:32 AM
#6 (permalink )
Registered Member
Join Date: Feb 2009
Posts: 78
I don't have a good tutorial for creating them programatically, unfortunately. From what I remember, most of apple's tutorials are for IB, though I think a lot of the sample codes are done programatically.
This link here shows you how to add stuff like buttons and labels to a view programatically:
Sign in with your Apple ID - Apple Developer Connection . That is about all I have got.
Thread Tools
Display Modes
Linear Mode
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
» Advertisements
» Online Users: 329
12 members and 317 guests
akacaj , alexP , ClerurcifeDer , Duncan C , givensur , GraffitiCircus , guusleijsten , JmayLive , NetGuru , Paul Slocum , Punkjumper , Sloshmonster
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,649
Threads: 94,114
Posts: 402,883
Top Poster: BrianSlick (7,990)
Welcome to our newest member, Anwerbl