davdroman / Bohr

Settings screen composing framework
MIT License
1.26k stars 83 forks source link

title disappear after click on BOButtonTableViewCell #48

Open novinfard opened 8 years ago

novinfard commented 8 years ago

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:

After:

How to solve this issue?

estock commented 8 years ago

I have this error as well

croossin commented 7 years ago

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