ios7.1

iOS app with iBeacon must restart device

十年热恋 提交于 2019-12-02 04:05:32
I built a simple ios app with IBeacon . I ran this app on an iPhone 4s whit ios7.1 while running an IBeacon base station.Everything is working right in background or foreground(exit region have 30 seconds delay in background).But over a period of time,about 3 hours,this app can not monitor any event though device setting were not change(blueTooth and locate is normal).This situation must restart the device. Please tell me what should i do aboult this situation? Thanks! davidgyoung I wonder if iOS Bluetooth scanning is slowing down when your app is in the background such that it appears that

iOS7.0 and iOS 7.1 doesn't honor Dynamic tableview Height

╄→гoц情女王★ 提交于 2019-12-02 01:37:22
I have used autolayout in various implementations for UITableViewCell, the approach being let the intrinsic size define the size and which in turn will provide height for tableview rows. Strangely but targeting iOS7 and above with Autolayout in UITableViewCell isn't working as desired. To fix one of the other issues where tableview cells became squeezed (on iOS8 and above) I added following check if (NSFoundationVersionNumber > NSFoundationVersionNumber_iOS_7_1 ){ self.tblvChatList.rowHeight = UITableViewAutomaticDimension; self.tblvChatList.estimatedRowHeight = 44; } The only other tableview

BUTTON SHAPE on in device (iPhone) setting result app crash if its off app working

烈酒焚心 提交于 2019-12-01 23:51:08
Recently i switch my app to iOS 7 compatibility and the app working fine but if i switched on the Button Shape option (Available in iOS 7.1) in device setting (Setting--> Accessblity--> Button shape switch) then app crash and gives following error:- -[NSAttributeDictionary textContainerForAttributedString:containerSize:lineFragmentPadding:]: unrecognized selector sent to instance 0x17e4e310 CoreFoundation And the app work fine when button shape option switched off. crash stack trace:- -[NSAttributeDictionary textContainerForAttributedString:containerSize:lineFragmentPadding:]: unrecognized

Unable to boot the iOS Simulator (ios 7.1)

萝らか妹 提交于 2019-12-01 14:51:09
I am facing a problem. When I try to run the simulator iPhone 5s (iOS 7.1) a message pops up saying " Unable to boot the iOS Simulator ". Though if I run the iPhone 5 or iPhone 4s simulators ( iOS 7.1 ) or iPhone 5s ( iOS 8.3/8.4 ) all work fine. I am running OS X Yosemite (10.10.5), Xcode 6.4 and iOS simulator iPhone 5s ( iOS 7.1 ). Update : CoreSimulator.log: Error Domain=NSPOSIXErrorDomain Code=60 "Unable to boot the iOS Simulator." UserInfo=0x7ffe8d94f990 {NSLocalizedDescription=Unable to boot the iOS Simulator., NSLocalizedFailureReason=launchd failed to respond.} DiagnosticReports:

Sprite Kit - object colliding because of scale after iOS 7.1 update

时光怂恿深爱的人放手 提交于 2019-12-01 09:14:04
There was no problem but after iOS 7.1 update, object is colliding 2pipes' gap. Someone said before, it can be because of 'yScale' but I couldn't find the solution. Some code; Pipe *pipe = [[Pipe alloc] initWithImageNamed:pipeImageName]; [pipe setCenterRect:CGRectMake(26.0/kPipeWidth, 26.0/kPipeWidth, 4.0/kPipeWidth, 4.0/kPipeWidth)]; [pipe setYScale:height/pipe.size.height]; [pipe setPosition:CGPointMake(320+(pipe.size.width/2), abs(pipeYOffset + (pipe.size.height/2)))]; pipe.physicsBody = [SKPhysicsBody bodyWithRectangleOfSize:pipe.size]; [pipe.physicsBody setAffectedByGravity:NO]; [pipe

How to know the closest iBeacon

点点圈 提交于 2019-11-30 22:56:22
I have a code to know which beacon is the closest, but I have a problem when a beacon's accuracy is -1.00000, the the app takes the second one. So there is a bucle that seek for the closest beacon looking for others and comparing the one closest with the others found around. Then when I know which is the closest one I show it's view to the user, but when other beacon is closer to the ipad the view is close and the view is shown. I'm using iOS 7.1 and 7.0.4 on 2 iPads, first is iPad3 and the second one is an iPad Mini Retina. Here you have the code: - (void)locationManager:(CLLocationManager *

How to know the closest iBeacon

旧巷老猫 提交于 2019-11-30 17:57:57
问题 I have a code to know which beacon is the closest, but I have a problem when a beacon's accuracy is -1.00000, the the app takes the second one. So there is a bucle that seek for the closest beacon looking for others and comparing the one closest with the others found around. Then when I know which is the closest one I show it's view to the user, but when other beacon is closer to the ipad the view is close and the view is shown. I'm using iOS 7.1 and 7.0.4 on 2 iPads, first is iPad3 and the

iOS Core Bluetooth : Getting API MISUSE Warning

时间秒杀一切 提交于 2019-11-30 16:47:34
I am writing a test app in iOS 7 with the Core Bluetooth API. When I am testing the application I found that I am getting the following warning message: TestBluetooth[626:60b] CoreBluetooth[API MISUSE] can only accept commands while in the powered on state Later I debugged app and found that, warning is coming from the following line of code: [manager scanForPeripheralsWithServices:array options:scanOptions]; So can anyone please tell me why I am getting this message in the console? There are bluetooth 4.0 android devices around me, but this app is not discovering them as peripheral device. So

Swift reuse cells in ios7.1 simulator, cells are hidden

一个人想着一个人 提交于 2019-11-30 09:54:15
问题 This works on iOS8.1 simulator perfectly. Original code: func updateCell(path:Int){ let indexPath = NSIndexPath(forRow: path, inSection: 0) tableView.beginUpdates() tableView.reloadRowsAtIndexPaths([indexPath], withRowAnimation: UITableViewRowAnimation.Fade) tableView.endUpdates() } override func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell { var cell:PhotoCell = tableView.dequeueReusableCellWithIdentifier("Cell", forIndexPath: indexPath)

Detect ring/silent switch position change

僤鯓⒐⒋嵵緔 提交于 2019-11-30 08:55:45
I'm working on an app for which I would like to: respect the ring/silent switch when playing audio, and display an icon indicating that sound is muted when the ring/silent switch is set to silent. Requirement 1 is easy: I'm using AVAudioSessionSoloAmbient as my app's audio session category, so that my audio session will mute itself when the ring/silent switch is off. Requirement 2 seems considerably harder, because I need some sort of callback, notification, or KVO that will allow me to monitor the position of the switch, but Apple has made it clear that it is unwilling to offer an officially