小编use*_*052的帖子

SetAppThreadPriority:setpriority失败,错误45

您好我的应用有问题:

 SetAppThreadPriority: setpriority failed with error 45
Run Code Online (Sandbox Code Playgroud)

我正在使用Xcode 6,我不确定这是否是问题.

xcode multithreading

26
推荐指数
1
解决办法
5602
查看次数

如何淡化UIImageView的角/边/边框

我无法在论坛上找到这个,所以我决定发布这个.

我有一个UIImageView与以下代码相互淡化图像.

- (void)viewDidLoad
{
[super viewDidLoad];
// Do any additional setup after loading the view.

[[UIApplication sharedApplication] registerForRemoteNotificationTypes:(UIRemoteNotificationTypeBadge | UIRemoteNotificationTypeAlert | UIRemoteNotificationTypeSound)];

imageNames = [NSArray arrayWithObjects:@"image1.jpg", @"image2.jpg", @"image3.jpg", @"image4.jpg", @"image5.jpg", nil];
imageview.image = [UIImage imageNamed:[imageNames objectAtIndex:0]];
[NSTimer scheduledTimerWithTimeInterval:2.0 target:self selector:@selector(transitionPhotos) userInfo:nil repeats:YES];

// Rounds corners of imageview
CALayer *layer = [imageview layer];
[layer setMasksToBounds:YES];
[layer setCornerRadius:5];

}

- (void)didReceiveMemoryWarning
{
[super didReceiveMemoryWarning];
// Dispose of any resources that can be recreated.
}

-(void)transitionPhotos{

if (photoCount < [imageNames count] - …
Run Code Online (Sandbox Code Playgroud)

objective-c uiimageview ios

4
推荐指数
2
解决办法
3338
查看次数

Mailgun/AFNetworking的编译器警告

我在我的应用程序中有一些编译器警告,我不明白:

在此输入图像描述

我使用cocoapods安装了Mailgun和AFNetworking.我的主项目已导入SystemConfiguration和MobileCoreServices框架,但我仍然遇到这些问题.

这些警告是不必要的,我的应用程序完美无缺!

我该如何去除这些?

compiler-warnings ios afnetworking mailgun

2
推荐指数
1
解决办法
402
查看次数