小编rui*_*ano的帖子

图标已包含光泽效果

我在iOS 5 beta 5的应用程序图标中遇到光泽效果问题,在iOS 4中显示效果不是光泽,但iOS5显示光泽效果.我提出了选项Icon already includes gloss effects = YES,但根本不起作用,看来应用程序Google+也存在同样的问题

icons ios ios5

57
推荐指数
7
解决办法
2万
查看次数

@autoreleasepool EXC_BAD_ACCESS

我有一个简单的UIViewControler,当我调用方法[self performSelectorInBackground:@selector(load)withObject:nil]; 它导致和EXC_BAD_ACCESS

这是UIViewControler.m和UIViewControler.h

#import <UIKit/UIKit.h>
@interface ViewController : UIViewController

@property (strong, nonatomic) UITextView *myTextView;

@end



#import "ViewController.h"

@implementation ViewController

@synthesize myTextView;

- (id)init {
    self = [super init];
    if (self) {
        myTextView = [[UITextView alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
        [[self view] addSubview:myTextView];
        [self performSelectorInBackground:@selector(load) withObject:nil];
    }
    return self;
}

- (void) load {
    @autoreleasepool {
        [myTextView setText:@"LOADING ..."];
        //DO SOMETHING ....
    }
}

@end
Run Code Online (Sandbox Code Playgroud)

PS:

该项目使用Objective-C ARC

cocoa-touch exc-bad-access objective-c autorelease

0
推荐指数
1
解决办法
1092
查看次数