相关疑难解决方法(0)

iOS7中的UIAlertView addSubview

添加一些控件UIAlertView已在iOS7中使用addSubview方法弃用.据我所知,Apple承诺增加contentView财产.

iOS 7现已发布,我发现此属性未添加.这就是为什么我搜索一些能够为此alertView添加进度条的自定义解决方案.例如类似于TSAlertView的东西,但更适合在iOS 7中使用.

objective-c uialertview ios ios7

67
推荐指数
6
解决办法
9万
查看次数

如何为特定文件添加ARC?

我创建了一个没有的项目ARC.我想在我的项目中使用第三方SDK.这SDK带有ARC支持.所以我想添加ARC第三方文件.我可以通过将此标志添加到构建阶段来禁用ARC所有"MYProject"文件-fno-objc-arc.

但我可能会使用大量文件.所以最好只添加ARC特定的SDK.那么如何SDKXCodeProject中为单个或特定文件添加ARC支持?

对于实例:我想使用网格视图.我正在添加GMGridView我的项目,它带来了ARC支持.

iphone objective-c ios automatic-ref-counting

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

自定义UIAlertView?

看到蓝色不适合我的UI界面,我只是想知道是否有办法改变uialertview的颜色,或者改为使用图像.有了所有按钮,'解雇'等仍然存在

谢谢

iphone cocoa-touch

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

iOS中的可达性类ARC错误

你好.我导入了reachability.h文件和reachability.m文件,以检查我的应用程序中的Internet连接,但是我收到了ARC错误.

我必须尝试将应用程序转换为ARC,但它仍然显示相同的错误如下:

compile Reachability.m and compile Reachability m files

implicit conversion of objective c pointer type 'Reachability *' to Cpointer type void * requires a bridged  cast

   ARC forbids explicit message send of 'dealloc'
   ARC forbids explicit message send of 'autorelease'
   ARC forbids explicit message send of 'autorelease'

  'NSAutoreleasePool' is unavailable: not available in automatic reference counting mode
  'NSAutoreleasePool' is unavailable: not available in automatic reference counting mode
   Cast of C pointer type 'void*' to Objective - C pointer type …
Run Code Online (Sandbox Code Playgroud)

objective-c reachability ios automatic-ref-counting

-1
推荐指数
1
解决办法
1571
查看次数