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 05-17-2008, 04:06 AM   #6 (permalink)
drake
New Member
 
Join Date: May 2008
Posts: 4
drake is an unknown quantity at this point
Default Re: Trouble with UIImage Touch tutorial

Hi Nitrex88! Thanks so much for your reply. I will definitely check out your other tutorials that work with the beta 5 release. Also, I could not figure out how to comment on your tutorial..which is why I used the forum. Sorry about that.

Also, this might already be common knowledge, but if there are any beginners out there, I found that if you don't want to use the MainWindow.xib file (and want to use one called "DifferentView.xib" for example), you can specify it in the appdelegate.m like so:

#import "YourAppDelegate.h"
#import "Controller.h"

@implementation YourAppDelegate

@synthesize window;
@synthesize YourController;

- (void)applicationDidFinishLaunchingUIApplication *)application {

//Specify the nib file to use
Controller *aController = [[Controller alloc] initWithNibName:@"DifferentView" bundle:[NSBundle mainBundle]];
self.YourController = aController;
[aViewController release];

UIView *controllersView = [YourController view]; //get view from view controller
[window addSubview:controllersView];
}

And make SURE that the View you create in Interface Builder is connected to the File Owner object. I spent awhile digging through everything before I realized my view wasn't connected to the right NIB. (yea, i'm sure you can tell that i'm new to this stuff.)
drake is offline   Reply With Quote
 

» Advertisements
» Online Users: 450
21 members and 429 guests
acegames, bhsu21, buggen, ChrisYates, ClerurcifeDer, Duncan C, e2applets, EvilElf, gdogdev, guusleijsten, HowEver, iAppDeveloper, iekei, jessicagx69, muhimranss, Paul Slocum, PavelMik, pbart, SLIC, Wikiboo, yys
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,637
Threads: 94,101
Posts: 402,821
Top Poster: BrianSlick (7,990)
Welcome to our newest member, jessicagx69
Powered by vBadvanced CMPS v3.1.0

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