iOS Development is easy with XCode, Swift3, UITableView, cocatouch, let's build iPhone, iPad and Macbook Applications.

UITextField text jumps iOS 9

Link for previous question: UITextField text jumps Briefly: I have ViewController with 2 UITextField elements. When loginField is firstResponder, after self.passwordField.becomeFirstResponder() text in login field jumps to the top left corner and back. And what’s more strange: this glitch reproduces only first time, then you need recreate ViewController to observe this behavior Here is video […]

Localizable.strings causing plist parsing error

I have just localized the file Localizable.strings in my Xcode project in order to localise my application to a few different languages. However, having edited each of the files in the standard “key = value” format, I receive the following parsing error, which does not specify a file making it hard to track down what […]

iPhone : Difference between nil vs Nil and true vs TRUE

What is difference between nil and Nil in iOS development? And similarly what is difference between true and TRUE in iOS development?

iOS8 Swift: deleteRowsAtIndexPaths crashes

I am having some trouble with deleting a row from my tableView in Swift, iOS 8, Xcode 6 Beta 6. Every time I try to delete a row I get an error along the lines of Assertion failure in -[UITableView _endCellAnimationsWithContext:], /SourceCache/UIKit_Sim/UIKit-3302.3.1/UITableView.m:1581 2014-08-30 20:31:00.971 Class Directory[13290:3241692] *** Terminating app due to uncaught exception ‘NSInternalInconsistencyException’, reason: […]

How to present a modal view controller with custom size in center?

I want to present a custom-sized modal view controller with animation from the bottom. I can achieve this animation with ModalPresentationStyle to FormSheet, but it forces me to use the default size which is 540×620 and my view doesn’t fit. How do I make perform a similar transition to an arbitrarily sized view (controller) placed […]

Unit testing Parse framework iOS

I am attempting to write unit tests for an iOS application which makes use of the Parse backend framework, and after much experimentation seem to be failing at writing successful unit tests. I have found a few posts on testing asynchronous code (Testing asynchronous call in unit test in iOS) and testing network calls, but […]

How to enable “tap and slide” in a UISlider?

What I want to get is a UISlider which lets the user not only slide when he starts on its thumbRect, but also when he taps elsewhere. When the user taps on the slider but outside of the thumbRect, the slider should jump to that value and then still keeping up to the user’s sliding […]

didSelectViewController not getting called when in “More” section

I have a UITabBarController and I have set up its delegate method didSelectViewController, as I am interested in the index of the tab that is being selected. However, I noticed that the didSelectViewController method doesn’t get called when the user is in the “More” section (when there are more tabs than can be shown in […]

iOS 8, How to use device for development?

I have a new iPad Retina and I’d like to use it for development with Xamarin Studio and XCode 6. In the past, with XCode 5 you simply connect the device and click the button that says “Use for Development”. But XCode 6 doesn’t have that button anymore and when I try to build my […]

Starting AVAssetExportSession in the Background

My app does some processing and at some point it needs to call an AVAssetExportSession. If the session has already started and then I background the app, everything completes normally. However, if I background the app before calling exportAsynchronouslyWithCompletionHandler. I get this error: AVAssetExportSessionStatusFailed Error Domain=AVFoundationErrorDomain Code=-11800 “The operation could not be completed” UserInfo=0x1e550db0 {NSLocalizedFailureReason=An […]