ios8

Is there a change to the behaviour of UIKeyboardWillShowNotification in iOS 8?

落爺英雄遲暮 提交于 2019-12-30 07:29:49
问题 I have had a simple UIView block animation that handles animating a group of text fields into view when the keyboard will show (and animate them back when the keyboard hides). This has worked fine in iOS 6 & 7, but now I'm getting incorrect behavior, and it all points to some change in UIKeyboardWillShowNotification . I set up an isolated project to test this further on a single text field, with two buttons that call exactly the same methods that are fired for the keyboard's WillShow and

Xcode 6 - Unknown type name 'NSString' / Expected identifier or '('

笑着哭i 提交于 2019-12-30 06:10:30
问题 When I am running my project in Xcode 6, I am having many weird errors. Parse Issue - Unknown type name 'NSString' Format argument not an NSString Could not build module Foundation Could not build module QuartzCore All of these errors occur in Apple's header files such as: CAMediaTiming.h, NSObjCRuntime.h,NSZone.h,NSObject.h, CALayer.h, etc. Unfortunately, the answers in here: ios - Parse Issues in NSObjCRuntime, NSZone, and NSObject did not work for me. How do you recommend I fix these

{NSDecimalNumber integerValue} behaving strangely in iOS8

前提是你 提交于 2019-12-30 06:04:47
问题 OK team, this is weird. [NSDecimalNumber integerValue] is behaving strangely. I'm sat at a breakpoint, trying to figure out why some parts of my app are broken in iOS8, and I'm looking at a variable called "timeSeconds". It appears like this in the Xcode Variables View: _timeSeconds (NSDecimalNumber *) 344.514533996581994496 But when I query it in the debugger, I see this: (lldb) p [self.timeSeconds doubleValue] (double) $14 = 344.51453399658192 (lldb) p [self.timeSeconds intValue] (int) $15

swift code crash ,log : dyld: Library not loaded: @rpath/libswiftCore.dylib

巧了我就是萌 提交于 2019-12-30 04:42:04
问题 I debug a simple swift app , it can normally running in the simulator, but on a real machine running on the crash immediately . system version , ios 8 xcode version , 6.0.1 crash log dyld: Library not loaded: @rpath/libswiftCore.dylib Referenced from: /private/var/mobile/Containers/Bundle/Application/002E2F03-EE10-433B-B95F-AE3760E777DA/sMdp.app/sMdp Reason: no suitable image found. Did find: /private/var/mobile/Containers/Bundle/Application/002E2F03-EE10-433B-B95F-AE3760E777DA/sMdp.app

UIImage and resizableImageWithCapInsets Swift

扶醉桌前 提交于 2019-12-30 04:35:06
问题 I'm newer with Swift's Apple. I had read an article from Here But don't know how to do something like that(or just simple don't know how to use resizableImageWithCapInsets with Swift). Please help me to use resizableImageWithCapInsets in Swift 回答1: Generic way in Xcode 6.1 is: Create an UIImage as a variable Create an insets Create a new image based on the original image and the insets, and assign it to the original image var myImage = UIImage(named: "navbar.png")! let myInsets : UIEdgeInsets

The runtime for selected device is not installed error

送分小仙女□ 提交于 2019-12-30 04:02:27
问题 I am trying to run application using xcode 6 on ios8 simulator but I am getting error "The runtime for selected device is not installed ". I have set the command line tool in preferences but no luck. Please help. 回答1: This just happened to me right after a beta update to Yosemite 10.10 and Xcode 6.6. I still have XCode 5 installed, and I thought it may have been from deleting XCode 6.5, but putting it back in Applications did not help. First, make sure you have all devices installed in your

How to write unit test for NSNotification

随声附和 提交于 2019-12-30 03:57:07
问题 I am working in swift, I want to refresh a page so I am sending it using notification, I am posting a notification in one ViewController and adding observer in another and it is working perfectly. What I want to do is add unit test to it in swift. I checked many sites but was not able to do it. I am new to swift and don't know where to start. Basically the working is, when i click the button notification is posted and when the next view controller is loaded the notification observer is added.

Swift - Error: unexpectedly found nil while unwrapping an optional value

蹲街弑〆低调 提交于 2019-12-30 03:42:06
问题 I have been making an app in Swift but I keep getting an error in my TableViewController class. I could not find any way to fix this and kept getting this error : override func tableView(tableView: UITableView?, cellForRowAtIndexPath indexPath: NSIndexPath!) -> UITableViewCell! { let cell : TextTableViewCell = tableView!.dequeueReusableCellWithIdentifier("Cell", forIndexPath : indexPath!) as TextTableViewCell let madan : PFObject = self.timeLineData.objectAtIndex(indexPath!.row) as PFObject

How do I support self sizing cells on iOS7?

﹥>﹥吖頭↗ 提交于 2019-12-30 00:59:29
问题 With the release of iOS8 I have designed my table view with cells taking advantage of self sizing cells. But I need my tables to work in iOS7 as well. How do I do that? Is there a way to check whether self sizing cells is supported or not in runtime, or can I implement some table delegate methods in my controller which will not be called in iOS7? If I try my table with self sizing cells in iOS7 I get errors on the console like this: Unable to simultaneously satisfy constraints. Probably at

HTTP Live Streaming: how to listen for timed metadata embedded as ID3 tags using Javascript in iOS8?

我与影子孤独终老i 提交于 2019-12-30 00:39:36
问题 We have a video streaming platform where users can broadcast a live video stream and synchronise it with a set of presentation slides. To display the broadcast on iOS we are using HTTP Live Streaming. In order to show the slide at the correct time in the stream on iOS we were listening for the qt_timedmetadataupdated event provided by Apple's Quicktime Javascript API. This method is described here: http://www.wowza.com/forums/content.php?355-How-to-debug-timed-data-events-%28ID3-tags%29-from