-
Notifications
You must be signed in to change notification settings - Fork 9
Description
I have a viewController defined as:
@interface MessageDetailView : AMMessageComposerVC<AMMessageComposerDatasource, AMMessageComposerDelegate>
On viewDidLoad I call a function to load my messages data into:
@Property NSMutableArray *jsonArray;
Here is my loading func:
-
(void)viewDidLoad
{
[super viewDidLoad];
// Do any additional setup after loading the view.self.amDataSource = self;
self.amDelegate = self;
[self getMessages:@""]; // load up jsonArray
} -
(void) getMessages:(NSString *) after {
.... load data ...
[self performSelectorOnMainThread:@selector(reloadMessagesData) withObject:nil waitUntilDone:NO];
}
Now the reloadMessagesData is called - I set a breakpoint in that function and it does:
[self.messageTableView reloadData];
But it seems NOT to cause the table to reload. I had breakpoints set in
-(NSInteger) numberOfMessages
{
return jsonArray.count;
}
BUT the only time numberOfMessages fires is BEFORE I have a chance to load jsonArray. It SHOULD also be firing after I call reloadMessagesData.
Do you have any idea why this would not happen?
----confused in Pennsylvania