问题描述
||
我想提交一个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];
这会损害任何Apple应用程序归集规则吗?合法吗请告诉我是否。
谢谢。
解决方法
这是不合法的,因为ѭ1不是公共API。
(不过,我要说的是,由于您使用的是KVC,它将通过Apple的审查,他们无法知道这是私人电话。不过,请放心使用,不要使用它!)