标签: ios objective-c tags
我正在尝试设置一个标记,以便在我的iOS应用中启用多个动作表,但我应该在哪里声明它以及如何?
[actionSheet setTag:kActionSheet1];
这是我放入.m但它需要声明
答案 0 :(得分:0)
UIActionSheet *asheet = [[UIActionSheet alloc] init]; [asheet setTag:11]; [asheet showInView:self.view];
这里有一些教程。
iOS Quick Tip: Create a Dynamic Action Sheet
UIActionSheet and UIActionSheetDelegate