Hi guys,
I've got into a problem that when I'm using SplitView control in portrait mode and click the "Root Button" on the top left, the programs automatic close. There is nothing shown on debugging console. If I don't click on the "Root Button" and rotate device directly, I'll get a working RootView without crashing.
The approach I use is to have an NSDictionary global variable (JSON parsing). I can fetch data and display in both RootView and DetailView without problem. Since the data entry is varied, so I must get a variable table. That's what I used:
(feed is the NSDictionary global variable)
- (NSInteger)tableView:(UITableView *)aTableView numberOfRowsInSection:(NSInteger)section {
// Return the number of rows in the section.
NSArray *test = (NSArray *)[feed valueForKey:@"user_info"];
return [test count];
}
Everything seems fine to me (and working also). I've tried almost every tutorial, and port my code on their source code. It still crashes.
The data size is not large, it's usually less than 20.
Furthermore, if I set the return to 100 instead of [test count], it also crashes when I try to scroll down in portrait mode...
Could anybody please help me on this issue?
Thank you, guys~