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

Mockup & CodeGen, iPhone & iPad
($9.99)

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

Manu
($0.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

Thread: Get creater
View Single Post
Old 11-18-2008, 11:20 AM   #3 (permalink)
soffa
New Member
 
Join Date: Oct 2008
Posts: 6
Default

i create the view with
UIView mainView = [[UIView alloc] initWithFrame:displayRect];
in the viewController programmically.

so i have no IBActions or IBOutlets.

i create the buttons with
UIBarButtonItem *btn1 = [[UIBarButtonItem alloc] initWithTitle:@"Load" style:UIBarButtonItemStyleBordered target:self action:@selector(btn1Func];

but the target should not be the UIView itself, it should be the 'creator' here the viewController.

Last edited by soffa; 11-18-2008 at 11:24 AM.
soffa is offline   Reply With Quote
 

» Advertisements
» Stats
Members: 158,843
Threads: 89,211
Posts: 380,652
Top Poster: BrianSlick (7,129)
Welcome to our newest member, nataliekendal
Powered by vBadvanced CMPS v3.1.0

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