Bohr
Bohr copied to clipboard
title disappear after click on BOButtonTableViewCell
I create a BOButtonTableViewCell
and set destinationViewController
for it, but after go the destination view controller and then go back to Bohr controller, the item's title disappears!
[section addCell:[BOButtonTableViewCell cellWithTitle:@"Sample Text" key:nil handler:^(BOButtonTableViewCell *cell) {
cell.mainFont = [UIFont fontWithName:FONT_MAIN size:18];
SampleViewController *dvc = [[SampleViewController alloc] init];
cell.destinationViewController = dvc;
}]];
Before: <img width="321"src="https://cloud.githubusercontent.com/assets/611607/13378298/30b7de66-de17-11e5-87cf-2e8b3148a30f.png">
After:
How to solve this issue?
I have this error as well
Figured it out - you must instantiate the view in a nav controller so it is able to push itself on the view hierarchy.