【发布时间】:2011-05-29 14:08:38
【问题描述】:
我想提交一个 iPhone 应用程序,但我担心以下代码行会将图像添加到 UIActionSheet 按钮:
UIActionSheet *actionSheet = [[UIActionSheet alloc] initWithTitle:@""
delegate:self
cancelButtonTitle:nil
destructiveButtonTitle:nil
otherButtonTitles:nil];
[actionSheet addButtonWithTitle:@"Button"];
[[[action valueForKey:@"_buttons"] objectAtIndex:0] setImage:[UIImage imageNamed:@"yourImage.png"] forState:UIControlStateNormal];
这是否会损害任何苹果应用程序的提交规则?合法吗?如果有请告诉我。
谢谢。
【问题讨论】:
-
我有同样的问题,您是否使用此代码提交了您的应用程序?
-
实际上是的,我已经提交了该应用程序,并使用上面相同的代码获得了批准,但不能保证正如@gcamp 所说的那样请注意安全,不要使用它。
标签: iphone objective-c uiactionsheet appstore-approval