-
user969043
ios viewdidload viewdidappear
So let’s see if I can write a clear enough description of my problem…I’m developing an application for a museum, where the user can find artworks either through an id or by scanning a qr tag… Once either an id is entered or a tag scanned, the application sends the user from the search view, to the info view. The info view gathers information about the artwork from an SQLite database…My problem is, that in the info view, I call the function from the database class as such:- (void)viewDidLoa
-
Jackson
cocoa-touch ios orientation uiinterfaceorientation viewdidappear
I just tracked down a crash I was having in my iOS app and it is related to willAnimateRotationToInterfaceOrientation being called before viewWillAppear.I have an app with two views. Basically, when view1 disappears, I release some arrays, assuming they will be re-initialized when it re-appears in viewWillAppear.However, if I change orientation in view2 then switch back to view1, this causes willAnimateRotationToInterfaceOrientation to happen before view1 has calledviewWillAppear and re-initiali
-
Peter Warbo
iphone objective-c ios-simulator uiwebviewdelegate viewdidappear
I yet again have a super weird problem. I get different outputs whether I’m running the application on the simulator or on the iPhone.See these console logs:iPhone First run, first career cell clicked2011-06-23 14:47:28.974 Acando[2033:307] 1 – loadView method running 2011-06-23 14:47:29.156 Acando[2033:307] 2 – viewDidLoad method running 2011-06-23 14:47:29.159 Acando[2033:307] 3 – viewWillAppear method running [Switching to process 12803 thread 0x0] [Switching to process 11523 thread 0x0] 2011
-
mrueg
iphone uitableview scrolling uitableviewcontroller viewdidappear
I have a UITableViewController in my app, which is added to the view hierarchy directly. After the view appears, I want to scroll to a specific cell. My solution would be to call the code for scrolling in -[viewDidAppear].According to Apple’s docs I have to call the method manually:If the view belonging to a view controller is added to a view hierarchy directly, the view controller will not receive this message. If you insert or add a view to the view hierarchy, and it has a view controller, you