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:30 AM   #4 (permalink)
mikolo
Game Dev
 
mikolo's Avatar
 
Join Date: Dec 2009
Location: Munich
Posts: 31
mikolo is on a distinguished road
Default

Quote:
Originally Posted by mikolo View Post
Hi, thank you but i become the error: expected specifier-qalifier-list before 'NowHereViewController'!

I don`t konw what does this means? Can you help me again? I read also about protocol... but i don`t understand ... the apple help ist realy difficult!

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!
mikolo is offline   Reply With Quote
 

» Advertisements
» Online Users: 671
20 members and 651 guests
ADY, apatsufas, dacapo, djbrooks111, Duncan C, esoteric, fiftysixty, GHuebner, iAppDeveloper, ipodphone, JoePitto, KarlJay, mutantskin, sacha1996, SLIC, smithdale87, smithms, spinyanteater, ukneeq, Xaphann
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» 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:05 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.