Bohr icon indicating copy to clipboard operation
Bohr copied to clipboard

title disappear after click on BOButtonTableViewCell

Open novinfard opened this issue 9 years ago • 2 comments

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?

novinfard avatar Feb 28 '16 09:02 novinfard

I have this error as well

estock avatar Mar 17 '16 18:03 estock

Figured it out - you must instantiate the view in a nav controller so it is able to push itself on the view hierarchy.

croossin avatar Oct 09 '16 14:10 croossin