不清理UIActionSheet的滚动背景.这些按钮似乎在背景UIActionSheet中冻结.
screenshot with problem
我的代码:
UIActionSheet *popupquery = [[UIActionSheet alloc]; for (int i=0; i<[ParamAllList count]; i++) { NSMutableDictionary *Param = [ParamAllList objectAtIndex:i]; [popupquery addbuttonWithTitle:[Param valueForKey:@"name"]]; [[[popupquery valueForKey:@"_buttons"] objectAtIndex:[[popupquery valueForKey:@"_buttons"] count]-1] setimage:[UIImage imagenamed:@"add40icon.png"] forState:UIControlStatenormal];} popupquery.actionSheetStyle = UIActionSheetStyleautomatic; [popupquery showFromrect:button_Settings.frame inVIEw:button_Settings.supervIEw animated:YES];解决方法 这是我的actionSheet代理的解决方法:
- (voID)willPresentActionSheet:(UIActionSheet *)actionSheet { actionSheet.backgroundcolor = [UIcolor whitecolor]; for (UIVIEw *subvIEw in actionSheet.subvIEws) { subvIEw.backgroundcolor = [UIcolor whitecolor]; }}
基于这个答案:
Change Text color in UIActionSheet Buttons
以上是内存溢出为你收集整理的具有许多按钮的Xcode iPad UIActionSheet不能正确显示iOS7全部内容,希望文章能够帮你解决具有许多按钮的Xcode iPad UIActionSheet不能正确显示iOS7所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)