pushViewController without navigationcontroller

前端 未结 5 1469
执念已碎
执念已碎 2020-12-31 06:54

I have a class that is of type UITableViewController. This class has a member of type UINavigationBar that I use for adding in an edit button for t

5条回答
  •  一整个雨季
    2020-12-31 07:24

    The closest alternative if you don't want to use navigation controller are modal view controllers.

    [self presentViewController:controller animated:YES completion:nil];
    

    This will slide the controller into your screen from bottom, or if you change controller's modalTransitionStyle it can flip over or fade in.

    To dismiss the controller just call:

    [self dismissViewControllerAnimated:YES completion:nil];
    

提交回复
热议问题