• 手机站
  • 收藏
聚培教育网合作机构 > 上海达内教育
上海达内教育
400-998-6158
上海达内教育是一家由留学海归创办的高端职业教育培训机构,是中国人才培养平台、人才输送平台。
上海达内教育

iphone开发之toolbar的使用

软件测试学习网

更新时间:2021-07-15 浏览:109
核心提示:IOS 3.0之后,navigation controller内置toolbar表明toolbar及其toolbar基本上的设定编码以下

IOS 3.0之后,navigation controller内置toolbar

表明toolbar及其toolbar基本上的设定编码以下:

[self.navigationController setToolbarHidden:NO animated:NO];

self.navigationController.toolbar.barStyle = UIBarStyleBlack;

UIBarButtonItem *item = [[UIBarButtonItem alloc] initWithBarButtonSystemItem: UIBarButtonSystemItemCompose target:self action:@selector(settingButtonClicked)];

NSArray *myToolbarItems = [[NSArray alloc] initWithObjects: item, nil];

[self setToolbarItems: myToolbarItems animated:YES];

toolbar的掩藏:

NewOrderViewController *newOrder = [[NewOrderViewController alloc] initWithNibName:@"NewOrderView" bundle:[NSBundle mainBundle]];

newOrder.hidesBottomBarWhenPushed = YES;

[self.navigationController pushViewController:newOrder animated:YES];

更多>同类资讯
更多>相关课程
顶部