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 02-06-2010, 02:12 AM   #4 (permalink)
javaconvert
Registered Member
 
Join Date: Sep 2009
Posts: 126
javaconvert is on a distinguished road
Default

Quote:
Originally Posted by tateyaku View Post
Thank you for the reply!

I've tried to put the viewWillLoad into my app, but it wouldn't work where ever I put it. I'm not using a navigation based program, it's just a normal view/VC with a table placed inside with interface builder.

I've tried putting the reloadData code in other places in the code, but still no effect. With and with out the self. section. I've even tried the release / = nil / reload /reloadData for the shared variable, but still no positive effects.

Do you, or any one else have any other way of implementing this code, or a different way of passing the selected value to the new view?
Well, viewWillLoad is never going to get called as it's not a valid method (unless I missed it in the documentation?). You can put it in viewDidLoad, but that will only update the data when the view is actually loaded. Try doing this:

Code:
-(void)viewWillAppear:(BOOL)animated {
    [self.tableView reloadData];
    [super viewWillAppear:animated];
}
So that every time the table view appears it will edit the data. I didn't test this because I don't have access to Xcode right now, so let me know what works and what doesn't and I'll try and help.
javaconvert is offline   Reply With Quote
 

» Advertisements
» Online Users: 542
11 members and 531 guests
cch4d10, Domele, Hassasin, ilmman, jeiry, kasumar, nebulabox, Newbie123, sangsom, smithms, SuperDietGenius
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,446
Threads: 94,031
Posts: 402,605
Top Poster: BrianSlick (7,978)
Welcome to our newest member, larueta13
Powered by vBadvanced CMPS v3.1.0

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