【发布时间】:2012-06-06 21:58:34
【问题描述】:
如果可以使用 insertSubView:belowSubview: 我很伤心:因为下面的代码正在抛出这个警告错误
Incompatible pointer types sending 'UIImage *__strong' to parameter of type 'UIView *'
我希望也许我做错了什么你们可以看到,因为我能想到的唯一其他方法是将 UIImageView 放入 UIView...请告诉我有更好的方法..哈哈
代码如下。
UIImage *shadowImage = [UIImage imageNamed: @"shade.png"];
UIImageView *shadowImageView = [[UIImageView alloc] initWithImage:shadowImage];
[otherNav.view addSubview:shadowImageView];
[otherNav.view insertSubview:shadowImage belowSubview:animatedActionView];
任何帮助将不胜感激。
【问题讨论】:
标签: iphone ios uiview uiimageview addsubview