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 > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 09-09-2010, 08:12 AM   #1 (permalink)
Registered Member
 
Join Date: Apr 2009
Posts: 77
gametest is on a distinguished road
Default init UIView with Nib File

Hello,

I want many UIViews in my application.

I want to load uiview from VIew xib file from another UIview. I added separate VIEW XIB file not in Viewcontroller. How to do this?

Thanks in advance.
gametest is offline   Reply With Quote
Old 09-09-2010, 01:08 PM   #2 (permalink)
Fly-by-night Innovator
 
Join Date: Jun 2010
Posts: 364
musicwind95 is on a distinguished road
Default

Not sure what you're asking, but I'll take a guess:

You want to use another XIB's view inside a XIB.

In that case, grab a view in the Library, and drag it into the original view. It'll show up in IB's Document window (look for it in the Window menu). Then, double-click the view in the Document window, and edit it as necessary.

Check out Lecture 3 & 5 of CS193P for more info.
__________________
If I have helped you, please consider donating. I use PayPal. It would mean a lot to me!


For more iOS Development, check out my blog—Cups of Cocoa. All visitors welcome, but especially beginners!

Hope I have helped!

Please check out IceFall, a new action game available in the App Store!
musicwind95 is offline   Reply With Quote
Old 09-11-2010, 02:22 AM   #3 (permalink)
Registered Member
 
Join Date: Apr 2009
Posts: 77
gametest is on a distinguished road
Default

Quote:
Originally Posted by musicwind95 View Post
Not sure what you're asking, but I'll take a guess:

You want to use another XIB's view inside a XIB.

In that case, grab a view in the Library, and drag it into the original view. It'll show up in IB's Document window (look for it in the Window menu). Then, double-click the view in the Document window, and edit it as necessary.

Check out Lecture 3 & 5 of CS193P for more info.
thanks for reply.

I want many UIviews in my application Let's say 100.
So, i need to create 100 viewcontroller with xib file in my application? or i can add all uiviews in one viewcontroller's xib file?

How can i manage all uiviews?
gametest is offline   Reply With Quote
Old 09-14-2010, 12:27 PM   #4 (permalink)
Fly-by-night Innovator
 
Join Date: Jun 2010
Posts: 364
musicwind95 is on a distinguished road
Default

As a tangent, you could declare many views in your viewController:

IBOutlet UIView *firstView;
IBOutlet UIView *secondView;
IBOutlet UIView *thirdView;


Then, drag out multiple views from the Library in IB. Connect the outlets as you normally would, and by double-clicking on the views in IB's Document window, you can design each view separately. Then load the views in viewDidLoad, viewDidAppear, or wherever else appropriate.
__________________
If I have helped you, please consider donating. I use PayPal. It would mean a lot to me!


For more iOS Development, check out my blog—Cups of Cocoa. All visitors welcome, but especially beginners!

Hope I have helped!

Please check out IceFall, a new action game available in the App Store!

Last edited by musicwind95; 09-14-2010 at 12:27 PM. Reason: IBOutlets
musicwind95 is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 336
10 members and 326 guests
bignoggins, carlandrews, flamingliquid, hzwegjxg, ilmman, jenniead38, linkmx, nadav@webtview.com, stanny
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,657
Threads: 94,116
Posts: 402,889
Top Poster: BrianSlick (7,990)
Welcome to our newest member, jenniead38
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 11:51 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0