小编tad*_*jsv的帖子

什么是最大值 iPhone上的双倍/浮动值?

有人知道它们定义的值或文件吗?还是宏,比如INT_MAX?

c iphone objective-c ios

77
推荐指数
2
解决办法
3万
查看次数

Image view not updating on NSThread

I'm trying to make a test app which measures the performance for threads. However, I'm trying to set an image to imageview on a thread and it's not updating. In fact, the methods setImage1 and setImage2 aren't even getting called. Any ideas? Look at the code for details

#import "UntitledAppDelegate.h"
#import <QuartzCore/QuartzCore.h>

@implementation UntitledAppDelegate

@synthesize window, imageView1, imageView2, label1, label2, label0;

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions 
{            
    [window makeKeyAndVisible];
    return YES;
}

-(IBAction) startSeparate:(id) sender
{
 imageView1.image = imageView2.image = …
Run Code Online (Sandbox Code Playgroud)

iphone cocoa objective-c nsthread ios

3
推荐指数
1
解决办法
1050
查看次数

标签 统计

ios ×2

iphone ×2

objective-c ×2

c ×1

cocoa ×1

nsthread ×1