Skip to content
This repository has been archived by the owner on Aug 24, 2020. It is now read-only.

title disappear after click on BOButtonTableViewCell #48

Open
novinfard opened this issue Feb 28, 2016 · 2 comments
Open

title disappear after click on BOButtonTableViewCell #48

novinfard opened this issue Feb 28, 2016 · 2 comments

Comments

@novinfard
Copy link

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?

@estock
Copy link

estock commented Mar 17, 2016

I have this error as well

@croossin
Copy link

croossin commented Oct 9, 2016

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants