gpt4 book ai didi

iphone - 如何在 objective-c 的表格 View 右侧添加加号按钮?

转载 作者:太空狗 更新时间:2023-10-30 03:29:58 26 4
gpt4 key购买 nike

我想在表格 View 的右侧添加加号按钮以在其他 View 中添加该单元格的内容。

如何在表格 View 右侧添加加号按钮。

最佳答案

如果你有一个导航栏,你应该像这样添加一个 UIBarButtonItem:

UIBarButtonItem *addButton = [[UIBarButtonItem alloc]      
initWithBarButtonSystemItem:UIBarButtonSystemItemAdd
target:self action:@selector(addButtonPressed:)];
self.navigationItem.rightBarButtonItem = addButton;

关于iphone - 如何在 objective-c 的表格 View 右侧添加加号按钮?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2272464/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com