小编mur*_*npl的帖子

在UIImageView中旋转图像

是否可以在UIImageView中仅旋转图像?我正在寻找有关它的信息,但我只找到了旋转UIImageVeiw的信息.

iphone objective-c uiimageview uiimage ios

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

iOS 7上UIButton突出状态的延迟

我在Xcode - Single View应用程序中创建了新项目.应用程序只有两个按钮.

UIButton *button1 = [UIButton buttonWithType:UIButtonTypeCustom];
[button1 setBackgroundColor:[UIColor greenColor]];
[button1 setFrame:CGRectMake(0, self.view.frame.size.height-40-100, self.view.frame.size.width, 40)];
[button1 setTitle:NSLocalizedString(@"button 1", nil) forState:UIControlStateNormal];
[button1 setTitleColor:[UIColor redColor] forState:UIControlStateNormal];
[button1 setTitleColor:[UIColor blueColor] forState:UIControlStateHighlighted];
[self.view addSubview:button1];

UIButton *button2 = [UIButton buttonWithType:UIButtonTypeCustom];
[button2 setBackgroundColor:[UIColor greenColor]];
[button2 setFrame:CGRectMake(0, self.view.frame.size.height-40, self.view.frame.size.width, 40)];
[button2 setTitle:NSLocalizedString(@"button 2", nil) forState:UIControlStateNormal];
[button2 setTitleColor:[UIColor redColor] forState:UIControlStateNormal];
[button2 setTitleColor:[UIColor blueColor] forState:UIControlStateHighlighted];
[self.view addSubview:button2];
Run Code Online (Sandbox Code Playgroud)

当我在带有iOS 7的iPhone上运行此应用程序时,当我按下此按钮时,第二个按钮会突出显示突出显示状态.在iPhone上使用iOS 6秒按钮非常完美.

为什么iOS 7上的按钮有突出显示的延迟?

objective-c uibutton ios ios7

7
推荐指数
1
解决办法
3067
查看次数

标签 统计

ios ×2

objective-c ×2

ios7 ×1

iphone ×1

uibutton ×1

uiimage ×1

uiimageview ×1