很多功能都被弃用了 - iOs 6 [英] A Lot of Functions are deprecated - iOs 6

查看:175
本文介绍了很多功能都被弃用了 - iOs 6的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一些自iOs 6以来被弃用的功能。
也许这对那些刚刚更新到iOs 6的人也有帮助。

I have a few functions that are deprecated since iOs 6. Maybe this'll be helpful for others who also just updated to iOs 6.

    [self presentModalViewController:pNewController animated:YES];
 presentModalViewController:animated is deprecated since iOs 6

 Autosynthesized property 'String' will use synthesized instance variable '_String', not existing instance variable 'String'

Autosynthesized property 'phonenumber' will use synthesized instance variable '_phonenumber', not existing instance variable 'phonenumber'


 Deprecated: Group Table View Background Color is deprecated in iOS 6.0.

任何人都可以帮我修复它,所以我的项目中不会有任何已弃用的功能。

Could anyone help me how to fixed it so there wont be any deprecated functions in my project.

提前致谢

推荐答案

[self presentModalViewController:pNewController animated:YES];

可以替换为

[self presentViewController:pNewController animated:YES completion:nil];

此更改的背景可以在WWDC 2012视频会议#236上看到,视图控制器的演变在iOS上。

The background of this change can be seen on WWDC 2012 video session #236, the evolution of view controllers on iOS.

这篇关于很多功能都被弃用了 - iOs 6的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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