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 06-11-2011, 07:11 AM   #1 (permalink)
Registered Member
 
Join Date: Jun 2011
Posts: 5
Ritskis is on a distinguished road
Default 'Request for member is something not a structure..'

I was following along with a tutorial and kind of went off and did my own thing, What I'm trying to do is get a xml document from a Weather API and display it on the fourth tab in the tab bar application.

Sorry this may seem lazy I initially got 15 errors and managed to get it down to three but I just cant find the problem. Any Help would be greatly appreciated but If I've done it totally wrong don't waste your time and just tell me I'll Start again.

Last edited by Ritskis; 06-11-2011 at 10:22 AM.
Ritskis is offline   Reply With Quote
Old 06-11-2011, 09:10 AM   #2 (permalink)
Reading the Documentation
 
baja_yu's Avatar
 
Join Date: Sep 2010
Location: 45.255019,19.844908
Posts: 5,414
baja_yu has a spectacular aura about
Default

Instead of having us go through your project, post the relevant code and errors.
baja_yu is offline   Reply With Quote
Old 06-11-2011, 09:56 AM   #3 (permalink)
Registered Member
 
Join Date: Jun 2011
Posts: 5
Ritskis is on a distinguished road
Default

Quote:
Originally Posted by baja_yu View Post
Instead of having us go through your project, post the relevant code and errors.
Sorry, The error I am getting is "Request for member 'FourthViewController' in something not a structure or union"

This is from the AppDelegate

Code:
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {    
    
    // Override point for customization after application launch.

    // Add the tab bar controller's view to the window and display.
    [self.window addSubview:tabBarController.view];
    [self.window makeKeyAndVisible];

    return YES;

	WeatherForecast *forecast = [[WeatherForecast alloc] init];
	self.FourthViewController.forecast = forecast;
	[forecast release];

}
You need to see the FourthViewController?
Ritskis is offline   Reply With Quote
Old 06-11-2011, 10:02 AM   #4 (permalink)
Reading the Documentation
 
baja_yu's Avatar
 
Join Date: Sep 2010
Location: 45.255019,19.844908
Posts: 5,414
baja_yu has a spectacular aura about
Default

If FourthViewController is a viewcontroller subclass, this line makes no sense:

self.FourthViewController.forecast = forecast;
baja_yu is offline   Reply With Quote
Old 06-11-2011, 10:38 AM   #5 (permalink)
Registered Member
 
Join Date: Jun 2011
Posts: 5
Ritskis is on a distinguished road
Default

Quote:
Originally Posted by baja_yu View Post
If FourthViewController is a viewcontroller subclass, this line makes no sense:

self.FourthViewController.forecast = forecast;
Yes thanks that solved the error I figured out the other one but there's one more. In the FourthViewController Interface file I have:

Code:
	//REFRESH BUTTON
	
	IBOutlet UIButton *refreshButton;	
	WeatherForecast *forecast;
}

- (IBAction)showInfo;
- (IBAction)refreshView:(id) sender;
- (void)updateView;
And In the Implementation file

Code:
- (void) viewDidLoad {
	[super viewDidLoad];
	[self:refreshView:self];
	}
But the error says refreshView is undeclared :S
Ritskis is offline   Reply With Quote
Old 06-11-2011, 10:49 AM   #6 (permalink)
Just helping out.
 
Domele's Avatar
 
Join Date: Feb 2011
Posts: 2,565
Domele is on a distinguished road
Default

That is not how you call a method:
Code:
[self:refreshView:self]
This is how you call a method:
Code:
[self refreshView:self];
Domele is offline   Reply With Quote
Old 06-11-2011, 10:56 AM   #7 (permalink)
Registered Member
 
Join Date: Jun 2011
Posts: 5
Ritskis is on a distinguished road
Default

Quote:
Originally Posted by Domele View Post
That is not how you call a method:
Code:
[self:refreshView:self]
This is how you call a method:
Code:
[self refreshView:self];
OMG you guys are awesome Thank You so much for the help apologies for my noobiness.
Ritskis is offline   Reply With Quote
Reply

Bookmarks

Tags
tab bar application, view controllers

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: 316
7 members and 309 guests
chemistry, Dnnake, iOS.Lover, jenniead38, lendo, Leslie80, pbart
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,664
Threads: 94,120
Posts: 402,898
Top Poster: BrianSlick (7,990)
Welcome to our newest member, Leslie80
Powered by vBadvanced CMPS v3.1.0

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