use*_*625 6 iphone uiactionsheet ipad
我想改变image of的buttons的UIActionSheet,我有images每个button了,我希望每个button显示image我想要的.我在网上搜索了我找到了很多答案,但是他们没有用.
这是初始化的 UIActionSheet
-(IBAction)showActionSheet:(id)sender {
UIActionSheet *popupQuery = [[UIActionSheet alloc] initWithTitle:@"title" delegate:self cancelButtonTitle:@"Cancel Button" destructiveButtonTitle:nil otherButtonTitles:@"Other Button 1", @"Other Button 2", nil];
popupQuery.actionSheetStyle = UIActionSheetStyleDefault;
[popupQuery showInView:self.view];
[popupQuery release];
}
Run Code Online (Sandbox Code Playgroud)
如果您更改这些大小,不仅可能会降低您的应用程序的可用性,而且可能会违反 Apple 的人机界面指南,从而导致您的应用程序在提交时被拒绝。
这是如何使用 Apple 的 UiActionsheet 的示例