我知道之前已经问过这个问题,但我想禁用内部应用程序的主页按钮,该应用程序将在iPad内部分发.
我已经在这里和谷歌搜索了一个解决方案,并希望阻止用户将应用程序置于后台.我已经看到一个似乎在iOS 4.0下不起作用的解决方案,当按下主页按钮时再次打开应用程序.
我可以使用任何私有API来实现这一点,因为这是一个内部应用程序,Apple不会对App Store进行审核吗?
谢谢
基本上我想检查是否已经加载/查看了UITableView中的单元格,因此我可以在单元格的第一个视图上执行动画.有谁知道我会怎么做呢?
我猜这可能是一种倒退的方式,如果你能想到一个更好的检查方式,那么我就是耳朵.
提前致谢!
我在viewController中创建下一个方法
-(void)setupDocsLabel:(NSMutableArray *)documents{
self.lDocumentos.frame = CGRectMake(self.lDocumentos.frame.origin.x, kFirstLabelYPosition+actualLabelYPos,self.lDocumentos.frame.size.width,lDocumentos.frame.size.height);
self.Documentos.frame = CGRectMake(self.Documentos.frame.origin.x, kFirstLabelYPosition+actualLabelYPos,self.Documentos.frame.size.width,self.Documentos.frame.size.height);
actualLabelYPos +=20.0;
for (DocInformation *doc in documents) {
NSString *textLabel = [doc.documentDescription stringByAppendingString:@" :"];
UIFont *lblFont = lDocumentos.font;
CGSize sizeFont = [textLabel sizeWithFont:lblFont forWidth:120.0 lineBreakMode:NSLineBreakByTruncatingTail];
UILabel *label = [[[UILabel alloc] initWithFrame:CGRectMake(lDocumentos.frame.origin.x+20, kFirstLabelYPosition+actualLabelYPos,sizeFont.width,sizeFont.height)] retain];
label.text = textLabel;
[label setFont:lblFont];
[label setTextColor:lDocumentos.textColor];
[label setBackgroundColor:[UIColor clearColor]];
//[label setLineBreakMode:NSLineBreakByTruncatingTail];
NSString *textDoc = doc.cdgoDocum;
UIFont *lblFontDoc = Documentos.font;
CGSize sizeFontDoc = [textDoc sizeWithFont:lblFontDoc];
UILabel *labelDoc = [[[UILabel alloc] initWithFrame:CGRectMake(label.frame.origin.x+label.frame.size.width+20, kFirstLabelYPosition+actualLabelYPos,sizeFontDoc.width,lDocumentos.frame.size.height)] retain];
labelDoc.text = textDoc; …Run Code Online (Sandbox Code Playgroud)