草庐IT

ios - 需要 iBeacon locationManager :didEnterRegion to trigger at near physical contact when backgrounded

这是我的挑战。我有一个配置为iBeacon的gimbal系列20,我的目标是让我的用户将他们的手机与应用程序后台的信标保持近距离物理接触。想想苹果支付。我已将发射功率一直设置为-23,但它仍然太强,并且信标正在触发DidEnterRegion委托(delegate)方法,距离可达一英尺。使用测距,我可以通过直接测量rssi来进一步设定阈值。该解决方案在应用程序运行时运行良好。我的问题是这个解决方案在后台运行不可靠,因为它在enterRegion事件后仅运行几秒钟然后停止。有没有办法进一步抑制信标的信号强度或其他方式导致locationManger:DidEnterRegion:触发较低

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图片的拼写错误。

ios - Mapkit didSelectAnnotationView : How to get at custom properties?

我试图在用户点击图钉时打开详细ViewController。我还定义了一个自定义注释,我想将它的一些信息传递到详细ViewController中。它看起来像这样:@interfaceSquatAnnotationClass:NSObject{NSString*name;NSString*address;NSString*gendered;NSString*availability;NSString*directions;NSString*commments;CLLocationCoordinate2Dcoordinate;}@property(nonatomic,readonly)CL

ios - 干净后的 "libtool failed with exit code 1"

我正在做一个项目,在我决定清理我的项目之前,一切都很顺利。仅当我在模拟器上运行我的应用程序时才会出现以下错误(在真实设备上运行良好):Libtool/Users/Yaman/Library/Developer/Xcode/DerivedData/Homeless-gujyzhsiwenufvedlinbbtrizcpd/Build/Products/Debug-iphonesimulator/libShareKit.anormali386cd"/Users/Yaman/Documents/iOS-Appàvendre/Homeless/Submodules/ShareKit"seten

ios - xcode 5 ld : 11 duplicate symbols for architecture armv7 clang: error: linker command failed with exit code 1 (use -v to see invocation)

在尝试构建我的项目时,我经常收到此错误提示ld:11duplicatesymbolsforarchitecturearmv7clang:错误:链接器命令失败,退出代码为1(使用-v查看调用)我最近尝试在我的项目中实现GPUImage,这与它有什么关系吗?我也读过类似的问题,但没有一个有我的解决方案。 最佳答案 大胆猜测,您是否可能在任何地方导入了.m文件而不是.h? 关于ios-xcode5ld:11duplicatesymbolsforarchitecturearmv7clang:er

ios - 无法创建 Podfile,因为 'plist file at path doesn' 不存在”

运行命令podinit.返回:[!]Theplistfileatpath/Users/admin/Desktop/TestProject/project.pbxprojdoesn'texist.我正在从“测试项目”文件夹运行命令。要获取.plist文件:TestProject>TestProject>Info.plist。我在build设置中设置了plist文件的路径,如下所示:我错过了什么? 最佳答案 因为命令不是podinit.它是podinitCocaoPodsGuidePage那个句点正好是cocoapod的guide中的那

ios - 如何强制-drawViewHierarchyInRect :afterScreenUpdates: to take snapshots at @2x resolution?

-drawViewHierarchyInRect:afterScreenUpdates:是fastway在iOS7中拍摄View层次结构的快照。它拍摄快照,但分辨率为@1x。这些快照在iPhone5S上看起来像素化且模糊。我从中创建快照的View未转换。我不想模糊它,想要在屏幕上看到的高质量。以下是我如何捕获它:UIGraphicsBeginImageContext(self.bounds.size);[selfdrawViewHierarchyInRect:self.boundsafterScreenUpdates:YES];UIImage*image=UIGraphicsGetIm

ios - @IBInspectable : wrong bounds and frames at runtime when I add subviews

这是我的@IBInspectable:代码:@IBDesignableclassPBOView:UIView{@IBInspectablevarborderRightColor:UIColor?{didSet{letborderRightView=UIView(frame:CGRectMake(frame.size.width-10,0,10,frame.size.height))borderRightView.backgroundColor=borderRightColoraddSubview(borderRightView)}}}这是Storyboard中的结果:UIView的宽度

ios - 在 iphone 应用程序中调用 exit(0)

在我的应用程序中的某个时刻,我执行了此exit(0)这导致我的应用程序崩溃。但是我还没有弄清楚执行时会调用什么方法。我已将消息放入:(void)applicationWillTerminate:(UIApplication*)application(void)applicationDidEnterBackground:(UIApplication*)application但是这些似乎都没有被调用!知道当exit(0)完成时调用什么方法吗? 最佳答案 来自Apple的人类用户指南...Don’tQuitProgrammatically

iOS 应用提交错误 : ERROR ITMS-90032: "Invalid Image Path - No image found at the path referenced under key ' CFBundleIcons': 'AppIcon29x29' "

我尝试将我的存档提交到AppStore。我不断收到以下错误:ERRORITMS-90032:"InvalidImagePath-Noimagefoundatthepathreferencedunderkey'CFBundleIcons':'AppIcon29x29'"ERRORITMS-90032:"InvalidImagePath-Noimagefoundatthepathreferencedunderkey'CFBundleIcons':'AppIcon40x40'"ERRORITMS-90032:"InvalidImagePath-Noimagefoundatthepathref