是否可以通过按钮或iOS 8中的任何内容从您自己的应用程序访问设置应用程序.我听说它在iOS 5中已经衰老,这是真的吗?如果没有在iOS 8中更改方法?如果没有其他方法可以做到这一点,那么解决它的最佳方法是什么?
我有一个以编程方式调用的UIImageView,我试图让它旋转但它不起作用.图像将被放置在动态UITableView中(我无法将其更改为静态).我的表视图中的图像看起来不错,但它不会旋转.
- (void)viewDidLoad
{
[super viewDidLoad];
UIImageView *imageView = [[UIImageView alloc] initWithFrame:CGRectMake(20, 122, 38, 38)];
imageView.image = [UIImage imageNamed:@"settings1.png"];
[self.view addSubview:imageView];
CABasicAnimation *spin;
spin = [CABasicAnimation animationWithKeyPath:@"transform.rotation"];
spin.fromValue = [NSNumber numberWithFloat:0];
spin.toValue = [NSNumber numberWithFloat:((360*M_PI)/180)];
spin.duration = 4;
spin.repeatCount = 10*1000;
[imageView.layer addAnimation:spin forKey:@"360"];
Run Code Online (Sandbox Code Playgroud)