ios8

Load assets from www folder on iOS 8 with Cordova 3.7 (file://)

别说谁变了你拦得住时间么 提交于 2020-01-13 09:24:12
问题 I have an hybrid app that works perfectly on iOS 7 using Cordova 3.7 and jQuery Mobile 1.3.2 I am testing it on iOS 8 and it is broken. I am requesting each page(view) of my app using absolute paths, using the file:// protocol, like: file:///var/mobile/Applications/<UUID>/MyApp.app/www/views/add-project.html but i get the error: Failed to load resource: The requested URL was not found on this server. I read about this bug, is that the problem? Also, on iOS 8, the location of the www folder is

iPod Touch canOpenURL of type tel://

匆匆过客 提交于 2020-01-13 09:02:30
问题 On an iPod Touch running iOS 8.0 (12A365), canOpenURL: returns YES for tel:// URL schemes. Also, openURL: returns nil, after a 5 - 10 second delay . UIApplication *application = [UIApplication sharedApplication]; NSURL *url = [NSURL URLWithString:@"tel://"]; if ([application canOpenURL:url]) { [application openURL:url]; } Anyone know why canOpenURL: doesn't return NO for iPod? The facetime URL scheme is different ('facetime://') so in theory it should return NO . Unfortunately I don't have an

Xcode 6 loads 3x image incorrectly when app's Deployment Target is set to 6.0 or 6.1

浪尽此生 提交于 2020-01-13 03:13:11
问题 I get this issue when building UI in storyboard (or xib) in xcode's interface builder. After I assign the image (with the same name in asset catalog) to an image view in Interface Builder, the xcode loads 3x image file instead of 2x in any non-retinahd devices which is running ios8. Note that this bug only happens when app's deployment target is set to 6.0 or 6.1 . I'm using asset catalog to manage image resources. This issue is tested and happens both in Xcode 6.0.1 and 6.1 GM seed 2 . I

Unable to read white on black Data Matrix barcode

五迷三道 提交于 2020-01-13 02:46:07
问题 Data Matrix barcode support was added to iOS 8 and I'm able to use it to read Data Matrix barcodes if they are black on white (dark on light). However, it never reads a white on black (light on dark) barcode. Reads this fine: Unable to read this: Per Data Matrix ECC 200, light on dark should be supported. Anyone have an idea how to get iOS 8 to read a light on dark Data Matrix barcode? 回答1: You can invert the colors of your AVCaptureSession in real time, allowing you to read the Data Matrix

IBDesignable and UITableViewCell

五迷三道 提交于 2020-01-12 19:07:48
问题 I'm trying to leverage IBDesignable features of Swift in XCode 6 to create a subclass of UITableViewCell I see in the WWDC demo, and on the web - that you can use a framework to create a subclass of a view (UIView) which can then be used in say, a custom UITableViewCell, which is not really what I want. Can I do the same thing with a UITableViewCell directly? If I expose a UITableViewCell in my framework, then try to use it in Interface Builder, I don't have access to my custom view

UIDatePicker issues in popovers on iOS 8

五迷三道 提交于 2020-01-12 04:51:05
问题 Is anyone else having issues with UIDatePickers in popovers on iOS 8? Suddenly our date pickers are not showing up correctly (see screenshot). It appears that part of the picker is not being displayed (though, you can still interact with the missing portion to change the time). I did some testing, and date pickers display perfectly in other views, so it's something related to either popovers or displaying the pickers in a view that is not full screen. Has anyone found a fix or a workaround

“Convenience initializer missing a 'self' call to another initializer”

岁酱吖の 提交于 2020-01-12 01:36:22
问题 I'm trying convert my code to iOS 8 project, and i need some explanation on how to fix this warning: "Convenience initializer missing a 'self' call to another initializer" on this code: -(instancetype) initWithCoder:(NSCoder *)aDecoder // warning: Convenience initializer missing a 'self ' call to another initializer { if (self = [super initWithCoder:aDecoder]) // warning: convenience initializer should not invoke an initializer on 'super' { // some init stuff here } return self; } 回答1: The

iOS 8 size classes for iPad landscape [duplicate]

被刻印的时光 ゝ 提交于 2020-01-11 17:12:50
问题 This question already has answers here : Sizing class for iPad portrait and Landscape Modes (6 answers) Closed 4 years ago . It seems all the current iOS devices maps to the new iOS 8 size classes nicely except iPad landscape? I seem not able to figure out how to use the size class feature to draw a different scene for iPad landscape (different from iPad portrait)? Is that intended by design in Apple's mind or am I miss something about the iOS size classes? 回答1: It appears to be Apple's

UITableView section footer view position after endUpdates

最后都变了- 提交于 2020-01-11 17:08:20
问题 On ios8 I'm using core data table view controller, and after deleting rows my section footer view suddenly goes all the way down to the bottom of the UITableView . When I scroll the table view, footer view goes back to its place. How can fix this and why is this happening? Here is the code just in case. - (void)controller:(NSFetchedResultsController *)controller didChangeObject:(id)anObject atIndexPath:(NSIndexPath *)indexPath forChangeType:(NSFetchedResultsChangeType)type newIndexPath:

iOS 8.0 bluetooth peripheral manager giving no callback for addService

↘锁芯ラ 提交于 2020-01-11 09:52:07
问题 I have created a bluetooth peripheral manager. I am adding some services to this peripheral manager using [self.peripheralManager addService:myService]. For iOS7.0 I am getting a callback for this method - (void)peripheralManager:(CBPeripheralManager *)peripheral didAddService:(CBService *)service error:(NSError *)error But for iOS8.0 I am not getting any callback for the same method and I am not able to establish a connection. Here are the steps that I followed: Create a peripheral manager