As you probably notices, simple screen drawing is useless if it comes to OpenGL view. So is it possible to generate UIImage from such? Of course, lets suppose […]
iOS
Posted on:
How to check object’s reference count in Swift 3?
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 […]
iOS
Posted on:
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?
iOS
Posted on:
Swift 3: Unexpected nil when using NSCoder
If you were using NSCoder in Swift 2, I’m pretty sure you used such code: decoder.decodeObject(forKey: “name”) as! String decoder.decodeObject(forKey: “number”) as! Int Now, in Swift 3, using […]