简体   繁体   English

具有iOS SDK 5的Theos和方法移植

[英]Theos with iOS SDK 5 and method porting

So I am attempting to bring the iOS 5 SDK to the Theos Makefile system. 因此,我尝试将iOS 5 SDK引入Theos Makefile系统。 I have the following things working: Private Frameworks, Multitasking from UIKit. 我有以下工作:私有框架,UIKit的多任务处理。 Since Theos uses SDK 3. This jump to SDK 5 breaks a few methods as they're deprecated. 由于Theos使用SDK 3,因此不建议使用跳到SDK 5的方法。 Keep in mind that I'll be using RPetrich's headers on GitHub for this. 请记住,我将在GitHub上使用RPetrich的标头。 With that in mind, I'm trying to add the following dismissal code to the UIViewController header. 考虑到这一点,我试图将以下解雇代码添加到UIViewController标头中。

- (void)dismissViewControllerAnimated: (BOOL)flag completion: (void (^)(void))completion __OSX_AVAILABLE_STARTING(__MAC_NA,__IPHONE_5_0);

This makes my compiler complain about the (void (^) (void)) part. 这使我的编译器抱怨(void(^)(void))部分。 I've tried replacing it with BOOL and just a regular void and then just calling nil when using the method. 我试过用BOOL和常规的void代替它,然后在使用该方法时仅调用nil。 Doesn't work that way. 不能那样工作。 I wanted to know if there was a way I can successfully compile with this method, or if I can somehow use dismissModalViewControllerAnimated: again. 我想知道是否有一种方法可以成功地使用此方法进行编译,或者是否可以以某种方式再次使用dismissModalViewControllerAnimated:。 Some reason I can still use presentModalViewController:animated: and it says they both WILL be deprecated. 由于某些原因我仍然可以使用presentModalViewController:animated:并且说它们都将被弃用。 Any suggestions? 有什么建议么?

将默认的编译器gcc / g ++更改为Apple的clang / clang ++

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM