小编And*_*Dev的帖子

禁用主页按钮

我知道之前已经问过这个问题,但我想禁用内部应用程序的主页按钮,该应用程序将在iPad内部分发.

我已经在这里和谷歌搜索了一个解决方案,并希望阻止用户将应用程序置于后台.我已经看到一个似乎在iOS 4.0下不起作用的解决方案,当按下主页按钮时再次打开应用程序.

我可以使用任何私有API来实现这一点,因为这是一个内部应用程序,Apple不会对App Store进行审核吗?

谢谢

iphone ipad ios4 ios

9
推荐指数
1
解决办法
5535
查看次数

如何确定先前是否已加载UITableViewCell?

基本上我想检查是否已经加载/查看了UITableView中的单元格,因此我可以在单元格的第一个视图上执行动画.有谁知道我会怎么做呢?

我猜这可能是一种倒退的方式,如果你能想到一个更好的检查方式,那么我就是耳朵.

提前致谢!

iphone uitableview

4
推荐指数
1
解决办法
872
查看次数

.xib的UILabel属性的setFrame不起作用

我在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)

frame uiscrollview uilabel ios

4
推荐指数
1
解决办法
2626
查看次数

标签 统计

ios ×2

iphone ×2

frame ×1

ios4 ×1

ipad ×1

uilabel ×1

uiscrollview ×1

uitableview ×1