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 12-27-2009, 10:45 AM   #5 (permalink)
kierster
Registered Member
 
kierster's Avatar
 
Join Date: Mar 2009
Location: Canada!
Posts: 261
kierster is on a distinguished road
Default

Quote:
Originally Posted by mikolo View Post
OK i got it now.. but a little bit different and with one warning! Here ist my result:

In NowHereViewController.m i wrote:

PHP Code:
- (void)viewDidLoad {
    
NSLog(@" ---- viewDidLoad ---- ");
    
    [
self.view addSubview:loginView];
    
    
loginView.controller self;
    [
loginView initLoginView];
    
    [
super viewDidLoad];
    
    

In LoginView.h i have:

PHP Code:
@interface LoginView UIView {

    
UIViewController *controller;
}

@
property (nonatomicretainUIViewController *controller
in Login.m i can call the method like this:

PHP Code:
[controller swichView:(@"ContactListView")]; 
but here comes a warning like this: 'UIViewController' may not respond to '-switchView:'

Maybe someone knows.. how i fix also this warning.. but when i try to do all with NowHereViewController it doesn`t work!
Don't worry about the warning too much:
Switch UIViewController with NowHereViewController. And add this line above it.
Code:
@class NowHereViewController;
@interface LoginView : UIView {

	NowHereViewController *controller;
}
Be sure you add "NowHereViewController.h" to your .m file.
Code:
#import "NowHereViewController.h"
Now you should be set!
__________________
Check out some of my apps:
Boltz ($0.99)
FreeBoltz (FREE)
Cross Digits ($2.99) [Universal!]
Cross Digits Lite (FREE) [Universal!]
Targets ($0.99) (Facebook | YouTube Demo)
Greg's Apps
kierster is offline   Reply With Quote
 

» Advertisements
» Stats
Members: 175,422
Threads: 94,017
Posts: 402,542
Top Poster: BrianSlick (7,978)
Welcome to our newest member, iAppDeveloper
Powered by vBadvanced CMPS v3.1.0

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