MBProgressHUD无法与ARC一起使用 [英] MBProgressHUD not working with ARC

查看:96
本文介绍了MBProgressHUD无法与ARC一起使用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

通常,我在不使用ARC的情况下编写程序,但是我继承了由使用ARC的其他人编写的应用程序.我需要向其添加MBProgressHUD,但是无论何时,我都会遇到各种各样的发行版本错误.我的问题是,MBProgressHUD是否可以替代它,或者可以使其与ARC一起使用?

Usually I write programs without the ARC but I have inherited an application that was written by someone else who used ARC. I need to add MBProgressHUD to it, but anytime I do I get all kinds of release build errors. My question is, is there an alternative to MBProgressHUD or any way to get it to work with ARC?

推荐答案

只需关闭MBProgressHUD .h/.m的ARC

Just turn off ARC for MBProgressHUD .h/.m in Xcode. Even though the developer has not contributed to the project recently, I imagine most libraries like this will not see ARC-compatibility in future.

这篇关于MBProgressHUD无法与ARC一起使用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆