jjzjj

deprecated

全部标签

ios - 使用解析和方法实现 Facebook 已被弃用

我正在尝试关注thistutorial并尝试添加这个:-(BOOL)application:(UIApplication*)applicationhandleOpenURL:(NSURL*)url{return[PFFacebookUtilshandleOpenURL:url];}z-(BOOL)application:(UIApplication*)applicationopenURL:(NSURL*)urlsourceApplication:(NSString*)sourceApplicationannotation:(id)annotation{return[PFFacebook

解决:Loading class `com.mysql.jdbc.Driver‘. This is deprecated.

1.在连接MySQL数据库时候会出现这个报错Loadingclass`com.mysql.jdbc.Driver'.Thisisdeprecated.Thenewdriverclassis`com.mysql.cj.jdbc.Driver'.ThedriverisautomaticallyregisteredviatheSPIandmanualloadingofthedriverclassisgenerallyunnecessary.2.为什么会出现这个问题?因为我们当前使用的数据库版本在6.0以上,原来的驱动(com.mysql.jdbc.Driver)已经被废弃了,要进行更换驱动就好了3.

ios - 部署目标 iOS8 但希望支持 iOS7 - 弃用警告

我有一个应用程序,我想以新的iOS8.1为目标,但我也希望拥有iOS7的人能够使用我的应用程序。因此,例如对于我的推送通知,在我的应用程序委托(delegate)中我有if([applicationrespondsToSelector:@selector(registerUserNotificationSettings:)]){UIUserNotificationTypeuserNotificationTypes=(UIUserNotificationTypeAlert|UIUserNotificationTypeBadge|UIUserNotificationTypeSound);U

ios - 'initWithRequest :delegate:' is deprecated: first deprecated in iOS 9. 0 - 使用 NSURLSession(参见 NSURLSession.h)

我是objective-c中的新手,使用iOS9Xcode7.2并收到此警告“'initWithRequest:delegate:'已弃用:在iOS9.0中首次弃用-使用NSURLSession(请参阅NSURLSession.h)”如何解决它。我的代码如下。+(id)createGetConnectionWithName:(NSString*)strConnectionName_withUrl:(NSString*)pageUrlparameterNames:(NSArray*)arrParamNamesparameterValues:(NSArray*)arrParamValues

ios - 大小与字体 : ConstrainedToSize: lineBreakMode: method is deprecated in iOS 7

sizeWithFont:ConstrainedToSize:lineBreakMode:方法在iOS7中已弃用,我有点不确定如何准确处理这个问题。在互联网上做了一些研究后,我发现有一种新的方法可以处理这个问题,即:[txtdrawWithRect:options:attributes:context:]这是我目前正在尝试运行的方法:+(CGSize)textSizeForText:(NSString*)txt{CGFloatwidth=[UIScreenmainScreen].applicationFrame.size.width*0.75f;CGFloatheight=MAX([J

ios - 警告 : touchID deprecated in iOS 11. 0

我在我的应用中支持TouchID和FaceID。为了支持旧版本的iOS,我使用了以下代码:if#available(iOS11.0,*){biometricsNotEnrolled=LAError.biometryNotEnrolledbiometricsLocked=LAError.biometryLockout}else{biometricsNotEnrolled=LAError.touchIDNotEnrolledbiometricsLocked=LAError.touchIDLockout}switch(error){casebiometricsNotEnrolled://Do

hadoop - org.apache.hadoop.mapreduce.Job 的所有三个构造函数都已弃用,构造 Job 类的最佳方法是什么?

全部threeconstructorsoforg.apache.hadoop.mapreduce.Job已弃用,有没有办法以非弃用的方式构建Job类?谢谢。 最佳答案 我会忽略弃用警告并坚持使用“mapred”包,而不是“mapreduce”。这个JIRAMAPREDUCE-1734删除了0.20.3的弃用。 关于hadoop-org.apache.hadoop.mapreduce.Job的所有三个构造函数都已弃用,构造Job类的最佳方法是什么?,我们在StackOverflow上找到一

php - Symfony 2.8 : isScopeActive deprecation after update to 2. 8.0 来自 2.7.7

我已经从2.7.7更新到symfony2.8,我得到了这个弃用:TheSymfony\Component\DependencyInjection\Container::isScopeActivemethodisdeprecatedsinceversion2.8andwillberemovedin3.0.我在twig扩展类中使用这个调用:classTemplateHelperextends\Twig_Extension{private$request;private$container;/***constructor*@paramContainerInterface$container*

php - CakePHP 错误 : Class 'String' not found in Acl

我的Acl管理员已损坏,我不知道为什么,因为我没有更改它以前工作时的任何内容。当我转到/acl时,出现以下错误:Error:Class'String'notfoundFile:/app/Plugin/Acl/Controller/Component/AclReflectorComponent.phpLine:17publicfunctiongetPluginName($ctrlName=null){$arr=String::tokenize($ctrlName,'/');我检查了$ctrlName中的内容,值是Acl/Acl。我完全迷失在这里,我该怎么办?

php - PHP 中的函数已弃用,我现在应该使用什么?

我的一个类(class)中有这段代码publicfunction__call($method,$args){array_unshift($args,$method);call_user_method_array('view',$this,$args);}我们已经更换了服务器,他们必须使用较新版本的PHP5,我收到以下消息Functioncall_user_method_array()isdeprecated我应该在哪里使用反射?它到底是什么,我将如何使用它来修改上面的代码以使其像以前一样工作? 最佳答案 http://php.net