Sooner or later, you will face the problem with object which are not deallocating. How to check if object gets deallocated? Just use deinit method like below: deinit […]
How to use JSContext from JavaScriptCore to create two way communication with web page
What is “JavaScriptCore”? Well, it is a name for internal Safari javascript engine. Is it useful? For most of us it is not, but if you thinking about […]
Fatal error: unexpectedly found nil while unwrapping an Optional value
This can be really painful when you just started with Swift. It really happens very often and can be confusing. Where it comes from?
Jenkins & XCode: User interaction is not allowed when executing task
Getting “User interaction is not allowed” error in your build task? If yes, solution is very simple. Just login your build user (usually “jenkins”) via the GUI (which […]
WatchConnectivity: Payload could not be delivered
So you are trying to send instant message to parent iPhone app and still receiving “Payload could not be delivered”? This happens only if one of those two […]
Swift: How to consume SOAP using Alamofire?
Well, SOAP is kinda old. But if for some reason you need to use it, here is how. 1. Create empty “Single View” project, you can call it […]
Swift 2.2: What is the difference between .map and .flatMap?
When you dive into .map and .flatMap ocean, you may be confused what is the difference. Consider such example: let arr = [1,2,3,4,5,6] print(arr.map{ return String($0 * 2)+”x” }) […]
Testing with Swift 2.x
Testing is good practice, but sometimes you may get into trap. Opposite to Objective-C, in Swift 2.x you don’t need to add each file to your test target, […]
Swift: What “Invalid predicate: nil RHS” means and how to handle?
Sooner or later you will face with “Invalid predicate: nil RHS”. What does it mean? Fortunately solution is very simple, somewhere in your code, you are using NSPredicate […]