草庐IT

date_found

全部标签

ios - 线程 1 : Fatal error: Unexpectedly found nil while unwrapping an Optional value while applying effects to image

我正在尝试对ImageView应用滑动、淡入淡出和增长效果。以下是我的代码@IBActionfuncfadeIn(_sender:Any){imageView.alpha=0UIView.animate(withDuration:1,animations:{self.imageView.alpha=1})}@IBActionfuncslideIn(_sender:Any){imageView.center=CGPoint(x:imageView.center.x-500,y:imageView.center.y)UIView.animate(withDuration:2){self.i

ios - MainStoryboard_iPhone~iphone.storyboardc was not found 归档时报错

当使用iOS6.1目标和SDK归档在Xcode5中的Xcode4.6中开发的仅限iPad的应用程序时,我收到以下错误,指出找不到MainStoryboard_iPhone~iphone.storyboardc。不应该这么说,因为我在项目设置下只勾选了iPad作为受支持的设备。由于验证检查失败,我无法将我的应用程序存档并推送到应用程序商店,因此我不确定如何进行。有人解决这个问题吗?我已经更新了Xcode5设置的bundle,并且我已经将Storyboard更新/还原为Xcode4.6。 最佳答案 我必须打开项目的info.plist文

ios分发证书: A valid provisioning profile for this executable was not found

不幸的是,我删除了我的应用程序的ios分发证书。我想创建另一个,但在构建我的应用程序时出现错误:应用程序安装失败:未找到此可执行文件的有效配置文件。这是我创建配置文件的过程:申请证书:在keychainaccess中,我选择KeychainAccess>CertificateAssistant>RequestaCertificateFromaCertificateAuthority。输入我的苹果开发者帐户的电子邮件地址和名称,保存CertficateSigningRequest.certSigningRequest。创建ios生产证书:在https://developer.apple.

ios - 在 iOS 中运行 'order by date' 查询所需的日期格式

我正在为我的iOS应用程序在sqlite中存储数据列表。在数据库中,一列“addedOn”以“30-Jul-201407:43:20”格式存储服务器响应的日期。在这里,我在“addedOn”列上尝试了很多东西,但无法以ASC/DESC顺序获取日期。其他一些细节是“addedOn”列的日期类型是DATETIME。尝试在使用的DESC中获取的查询是:“SELECT*FROMtableNameORDERBYdatetime(addedOn)DESCLIMIT1”&"SELECT*FROMtableNameORDERBYdate(addOn)DESCLIMIT1"&"SELECT*FROMta

iphone - Date from String 的奇怪问题

一个奇怪的问题:我正在通过以下代码将字符串转换为日期:NSString*dateStr=@"02/10/201212:00:13PM";NSDateFormatter*dtF=[[NSDateFormatteralloc]init];[dtFsetDateFormat:@"MM/dd/yyyyHH:mm:ssa"];NSDate*d=[dtFdateFromString:dateStr];NSDateFormatter*dateFormatStr=[[NSDateFormatteralloc]init];[dateFormatStrsetDateFormat:@"MMMMdd,yyyy

ios - NSDateFormatter stringFromDate : returns incorrect date on December 31st

根据unixtimestamp.com-2013年12月31日午夜,时间戳为1388448000。那么为什么会这样呢?在ViewController.m中:NSDateFormatter*titleFormatter=[[NSDateFormatteralloc]init];_titleFormatter=titleFormatter;在LLDB中:(lldb)po[NSDatedateWithTimeIntervalSince1970:1388448000]2013-12-3100:00:00+0000(lldb)p[NSDatedateWithTimeIntervalSince19

ios - 编译日期 (__DATE__) 返回昨天的日期

为了显示构建日期,我使用了这些代码:NSString*compileDate=[NSStringstringWithUTF8String:__DATE__];NSDateFormatter*df=[[NSDateFormatteralloc]init];[dfsetDateFormat:@"MMMdyyyy"];NSLocale*usLocale=[[NSLocalealloc]initWithLocaleIdentifier:@"en_US"];[dfsetLocale:usLocale];NSDate*date=[dfdateFromString:compileDate];[dfs

ios - 上传IPA,奇怪的问题: ERROR ITMS-90032 :“Invalid Image Path - No image found at the path referenced under key ' $key': '$path'

大家好,当我尝试通过Xcode将新版本上传到iTunesConnect时出现了一个奇怪的问题。我认为是Info.plist文件的问题。信息.plist:https://docs.google.com/document/d/1Rp51VcZkP-uoUnaBwtr86EAPLLq-aN2w9f2CNrRZsBQ/edit?usp=sharing谢谢! 最佳答案 Icon-Splotlight-iOS7.pngIcon-Splotlight-iOS7@2x.png可能是Spotlight图片的拼写错误。

iphone - iOS : Date conversion results in wrong date

我以前用几种格式做过几次。无法理解在这里俯瞰的是什么!日期转换不会那么难!:)但似乎太麻烦了。我得到这样的字符串:2013年8月9日06:44:01:950AM我正在尝试使用此代码将其转换为日期:[Date_ConvertergetDateFromString:datewithFormat:@"MMMddYYYYHH:mm:ss:SSSa"]并且在DateConverter.m+(NSDate*)getDateFromString:(NSString*)strDatewithFormat:(NSString*)format{NSDateFormatter*formatter=[[NSD

ios - ld : framework not found FBSDKCoreKit clang

我正在使用Layer+Parse构建一个iOS消息传递应用程序。我已将示例项目中的文件复制到我现有的应用程序中。起初我在构建时遇到了40多个错误,但我已经将其减少到一个。我刚刚添加了FacebookSKD,但出现了这个错误:ld:frameworknotfoundFBSDKCoreKitclang:error:linkercommandfailedwithexitcode1(use-vtoseeinvocation)任何有助于消除这种情况的帮助都会大有帮助。我已经尝试过这些步骤:Addthe-ObjCflagtoyourproject'sOtherLinkerFlagsbuildset