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 > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 09-15-2009, 12:08 PM   #1 (permalink)
Registered Member
 
Join Date: Jun 2009
Posts: 31
Default Sending data from ModalViewController to RootViewController

Hi, I am having a problem with my application. the problem is that i have a filterview (that is a modal view controller) that shows up when the filter button is press. the user can choose stuff and then the tableview should adapt to what was chosen. so far the filterview can select anything but it doenst send data back to the rootviewcontroller.

this is what ive tried so far. the user can select a city by pickerview which updates a label and my thinking is that i will send different data depending on the label name.
Code:
if (Month2.text = @"Anaheim") {
			
			Games *g67 = [[Games alloc] initWithName:@"Anaheim" ];

		NSMutableArray *gameArray = [[NSMutableArray alloc] initWithObjects:g67,nil];
			
		self.viewController.games = gameArray;
		[gameArray release];
		[self.viewController.tableView reloadData];
		
	}
	}
	[self.navigationController dismissModalViewControllerAnimated:YES];
maybe the problem is with my implementation of the pickerview which isnt really selecting something.

anyways please get back to me since this is a real issue
pete42 is offline   Reply With Quote
Reply

Bookmarks

Tags
data, pickerview, send, tableview, viewcontroller

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: 261
19 members and 242 guests
14DEV, @sandris, ADY, ArtieFufkin10, bookesp, ckgni, Dani77, DarkAn, HemiMG, iDifferent, IphoneSdk, jakerocheleau, JasonR, MACralik, prchn4christ, Rudy, Speed
Most users ever online was 1,187, 10-11-2011 at 08:09 AM.
» Stats
Members: 158,885
Threads: 89,230
Posts: 380,767
Top Poster: BrianSlick (7,129)
Welcome to our newest member, bookesp
Powered by vBadvanced CMPS v3.1.0

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