草庐IT

has_rkey

全部标签

iOS 多任务手势 : Is there any way to check if the user has them turned on or not?

这个问题在这里已经有了答案:Howtodisable4fingergesturesoniPad?(3个答案)关闭9年前。我知道我的应用无法控制多任务手势,但我想知道是否有办法检查它们是打开还是关闭。

ios - 定时器 3 :30 mins which has a options with add and skip?

我是ios的新手,所以我需要帮助制作一个3:30分钟的计时器,它有两个选项,添加和跳过,在计时器到达00:00后会消失。请帮助我,我现在处于非常困难的境地。这是定时器-(void)updatelable:(NSTimer*)timer{remainingTime=180;for(inti=remainingTime;i==0;i--){NSIntegerminutes=floor(*(remainingTime))/60;remainingTime=remainingTime-(minutes*60);NSIntegerseconds=remainingTime;second.text

ios - 捕获 "The In-App Purchase has already been bought"事件

-(void)paymentQueue:(SKPaymentQueue*)queueupdatedTransactions:(NSArray*)transactions{for(SKPaymentTransaction*transactionintransactions){CCLOG("transactionState=%ld",transaction.transactionState);switch(transaction.transactionState){caseSKPaymentTransactionStatePurchased:[selfcompleteTransaction

iphone - 方向错误 :'Supported orientations has no common orientation with the application, and shouldAutorotate is returning YES'

我正在尝试使用此代码在View上强制定向。-(BOOL)shouldAutorotate{returnYES;}-(NSUInteger)supportedInterfaceOrientations{returnUIInterfaceOrientationMaskLandscape;}-(UIInterfaceOrientation)preferredInterfaceOrientationForPresentation{returnUIInterfaceOrientationLandscapeLeft;}模拟器中的View在横向加载时发生了什么,当我将其转换为纵向时,应用程序崩溃并且

ios - Core Data keyPathsForValuesAffectingValueForKey 只调用关系,不调用属性

我正在使用CoreData对同时具有属性和关系的实体进行建模。我想让其中一个属性依赖于另外两个关系。核心数据常见问题解答和其他几个示例使用+(NSSet*)keyPathsForValuesAffectingValueForKey:(NSString*)key以此目的。但是,这似乎只针对我的所有关系属性调用,而不是针对任何属性调用。另外keyPathsForValuesAffecting永远不会因为我的任何属性而被调用。这是正常行为还是我遗漏了什么?如何根据其他属性或属性计算一个属性,例如。距离,通过设置startLocation和stopLocation?

iOS共享 "An error has occurred. Please try again later."

我正在通过[FBWebDialogspresentFeedDialogModally...]进行发布它工作正常。但是,如果我在Facebook设置中删除应用程序并再次尝试发帖,我会在网络发布View中看到登录对话框。登录后出现错误:“发生错误。请稍后重试。”。没有调用回调。如何解决? 最佳答案 似乎是SDK中的错误。尝试在传递给[FBWebDialogspresentFeedDialogModallyWithSession:parameters:handler]的参数字典中指定您的app_iddocumentation说“必需,但大

ios - 应用程序加载器错误 : XML Parsing Error has occurred

问题的本质:当您通过管理器在AppStore上下载应用程序时,在形成存档应用程序的步骤之后立即抛出此错误。没有特殊字符的应用程序名称。Info.plist文件没有特殊字符和空格。AnXMLparsingerrorhasoccurredTheXMLFile:metadata.xmlinvar/folders...itmspisNOTwell-formedThepackage:1123619127.itmspwillNOTbeuploadedImagewithproblem 最佳答案 去找错误原因,还得找xml文件。单击ViewLog并

ios - swift 3 错误 : Type 'AVLayerVideoGravity' has no member 'resizeAspectFill'

我正在使用Swift3开发一个iOS应用程序,我在后台播放视频。我的代码工作完全正常,直到随机出现错误消息:TypeAVLayerVideoGravityaka(NSString)hasnomemberresizeAspectFill出现。我完全不明白为什么resizeAspectFill不再被识别。有什么我想念的吗?我试过清理我的项目,但这并没有解决任何问题。任何帮助将不胜感激:)下面是代码:importFoundationimportAVFoundationimportUIKitclassHomeViewController:UIViewController{//MARK:Prop

ios - 警告 : Format specifies type 'long' but the argument has type 'UIWebViewNavigationType' ( aka 'enum UIWebViewNavigationType' )

想知道是否有人可以帮助我解决我在Xcode中收到的这个错误警告。我认为这与32v64位有关。我希望代码在32位和64位中都能工作。代码的相关部分是:-(BOOL)webView:(UIWebView*)webViewshouldStartLoadWithRequest:(NSURLRequest*)requestnavigationType:(UIWebViewNavigationType)navigationType{NSLog(@"expected:%ld,got:%ld",(long)UIWebViewNavigationTypeLinkClicked,navigationTyp

iOS 7 : Sharing in iOS 7 has cut of icons in UIActivityViewController

我的应用程序中有共享功能。我用过UIActivityViewController。但在iOS7中,共享图标被删除了......我使用了以下代码:NSMutableAttributedString*title=[[NSMutableAttributedStringalloc]initWithString:strTitle];[标题addAttribute:NSFontAttributeName值:[UIFontboldSystemFontOfSize:12]范围:NSMakeRange(0,strTitle.length)];CustomActivityView*ActivityProv