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 04-16-2010, 11:34 AM   #1 (permalink)
Registered Member
 
Join Date: Mar 2009
Location: I'm a Brit-pat.
Posts: 171
coulls is on a distinguished road
Default UIView Not Showing...

Hi All,

I'm trying a new way of doing something for the first time (using IB instead of creating stuff on the fly), and think I'm like 99% there - but missing that crucial 1% to get me over the finishing line:

The issue:

Imagine I have a class defined as follows:

***EDITED to add a view to wire up, but that didn't fix it either ***

Code:
@interface menuContainerView : UIView {
	
	IBOutlet UIButton	*button1;
	IBOutlet UIButton	*button2;
	IBOutlet UIView *_view;
}

@property (nonatomic, retain) IBOutlet UIButton	*button1;
@property (nonatomic, retain) IBOutlet UIButton	*button2;
@property (nonatomic, retain) IBOutlet UIView	*_view;
These are then synthesized in the .m file.

Next, I created a XIB. I set the files owner type to menuContainerView and put two buttons on it. I wired these to the IBOutlets, and that bit is fine.

Finally, I took a ViewController XIB from one of the screens in app, dropped the UIView control on it, set it to the menuContainerView and expected to see my class show up. It didn't....

So, I'm pretty sure it's something like I have no actual view wired up or something...

Does anyone see what step I'm missing here?

Cheers,

Coulls

Last edited by coulls; 04-16-2010 at 12:57 PM.
coulls is offline   Reply With Quote
Old 04-16-2010, 01:55 PM   #2 (permalink)
Registered Member
 
Join Date: Mar 2009
Location: I'm a Brit-pat.
Posts: 171
coulls is on a distinguished road
Default

OK - Maybe I'm going the wrong way about this...

Is it possible to create a UIViewController, populate it's XIB with controls then load that in a UIView control on another XIB?

I feel there has to be a way of dropping the same functionality on multiple screens without having to go to my usual lengths of dumping 40 gazillion lines of CG Context code in drawRect and actually just using an IB built interface...

Cheers,

Coulls
coulls is offline   Reply With Quote
Reply

Bookmarks

Tags
interface builder, uiview

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: 315
16 members and 299 guests
chemistry, Domele, Duncan C, Fstuff, givensur, heshiming, HowEver, iAppDeveloper, iphonedevshani, jbro, JoeRCruso, kapps11, newDev, SLIC, stanny, WheyLabs
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,648
Threads: 94,112
Posts: 402,874
Top Poster: BrianSlick (7,990)
Welcome to our newest member, brandon6031
Powered by vBadvanced CMPS v3.1.0

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