Here is an useful snippet for asynchronous NSBlockOperation.
Reusable, easy to build and maitain network layer with almost 100% test coverage
Trim Your View Controller With This IBOutlet Trick
First step to handwritten digits recognition - collecting data from paper sheet scans
Again inspired by work on dribbble.com - Building control on top of UIControl
Implemented custom view controller transition inspired by work on dribbble.com
Migrated the blog from Wordpress to Jekyll.
Seeking for a job is hard and very time consuming. I'll be back soon.
Getting proper audio input for audio recording.
Workaround for building project for simulator using xcodebuild and Xcode 7.2.
A trick that help you and your team in cocoapods install and updating process.
It makes your code a bit cleaner.
Nice way to pass data back without using delegate pattern.
Let's take a look how easy to use Realm is.
Easier configuration management using XCConfig files.
CloudKit getting started.
Working and enjoying free time in California.
Few thoughts about 3D Touch.
This is a question I asked yesterday, and copy-pasted my question details and answer I get on StackOverflow topic just to have it here.
NSUndoManager was mysterious thing to me for a really long time. I wanted to learn using it, and actually never got a time. To date. I wrote a simple app that allows to create rectangles that can be moved around and change their properties like background color or corner radius.
I am playing a bit with storyboards and was thinking if there is a way to move view without changing its level in views hierarchy. And, there is one.
This is a pretty useful trick that my colleague Piotr Tobolski shown me recently when I was struggling with Auto Layout (mainly cleaning it up).
This post is continuation of the UIViewController’s view loading process demystified post I’ve wrote some time ago. I’d like to cover how custom view is loaded when it is placed in a storyboard.
Swift 2.0 brought us ErrorType. Let’s take a brief look on it.
UIMotionEffect is a class that provides motion-based modifiers for views. It allows views to react on tilting of a device - nice class that I’ve learned about today.
Another addition to Swift 2 in Xcode 7 beta 5. We can use @NSManaged to declare autogenerated methods when using to-many relationships.
Xcode 7 beta 5 is out and there is nice addition to Swift. It is more about Xcode 7 beta 5 compiler, but still it is available in Swift 2.
That was pretty effective Saturday. Writing game was an interesting process and I played a lot 2048 that day. Here are my thoughts and impressions.
@NatashaTheRobot posted about testing view controllers and issues with loading views on her blog in The One Weird Trick For Testing View Controllers in Swift post.
iOS 9.0 provides new way to select and display proper localized string variation depending on screen width. With Swifternalization 1.2 you can use the feature also in iOS 8.0.
I was working on City Bike app for some time recently. Today I am excited to announce that I am making it open source project and the code is available on GitHub.
Apple released “Energy Efficiency Guide for iOS Apps” few days ago when releasing Xcode 7 beta 4. Note about this document is in the change log.
Apple added new API to CoreLocation framework. One of the available methods is requestLocation() which allow to get single location update.
“Even longer battery life.” - Apple says. Low Power Mode is a new feature of iOS 9 which lets iOS users extend their devices battery life. For now up to one hour, but hey, this is additional one hour, right?
Apple released Xcode 7 beta 4 today with some fixes and many improvements of the Swift language. One of them is indirect attribute for enums and its cases.
iOS 9.0 SDK provides new way to select and display proper localized string variation depending on screen width.
@hamzasood (Thanks!) mentioned about hidden feature in Xcode7 - Fuzzy Autocompletion.
Yesterday I wrote about using NSOperation for background tasks. It was more about long running tasks. When I finished writing the code I wasn’t so happy about how it looked. There were few bad things that I didn’t like. If you didn’t read the first version give it a try and next continue this one, I’ll wait :)
Xcode 7 includes new generator of NSManagedObject subclasses and it works for both Swift and Objective-C classes.
I has been inspired by this great Advanced NSOperations WWDC 2015 session yesterday and wanted to perform tasks in Quotes app in NSOperation-manner.
iOS 8 brought a lot of new APIs for developers. One of them is new API used for searching. Before iOS 8 we’re using UISearchDisplayController. Since iOS 8 there is new UISearchController available - let’s play with it for a moment and implement in Quotes app.
Joined one project yesterday and I am responsible for converting few Objective-C classes to Swift where I can get some experience in Objective-C and Swift interoperability.
Xcode 7 beta 3 brought us changes in Swift 2.0 language - It is not necessary to set raw values explicitly for enums that inherit from String - Great!
Watched WWDC 2015 session about Auto Layout - Mysteries of Auto Layout, Part 1 and encountered issues during testing what Kasia Wawer presented there.
Today I started new project on github, called Quotes. It has been created for testing features of iOS 9 and iOS 8 too which I was not able to test in the past or not tried yet because things are new.
Recently I realized that it is possible to work easier with Assets catalog in Xcode 6/7. As I started searching the Internet I found that the feature I’m using now is available since Xcode 6 has been released - PDF vectors. Don’t know how could I missed that.
This is very nice addition in Swift 2. It provides API availability checking and makes our lives easier.
Finally I successfully integrated Travis CI with Swifternalization. I spent some time finding ready-to-go solution how to configure my Swift 1.2 project to work with Travis and I couldn’t find it.
Today I spent time working on one framework I would like to share end of this week. It took me 8 hours and this were very peace, calm and nice hours of funny coding today. Why you might ask? Because of unit testing.
I am happy to annouce my new framework written in Swift I built this week, Yay! As mentioned in previous post about Test Driven Development I was working this week on framework that solves problem of app localization and plural strings support in smarter way - And there it is - Swifternalization.
I’ve read changes in iOS 9 APIs and found interesting addition in NSNumberFormatter class. There are additional NSNumberFormatterStyle enum options to format numbers.
I’ll show a way how to create custom controls/components and how to reduce the code inside view controller classes. This is a thing I learned few months ago, and I’m using it daily when dealing with custom controls.
This is response to Natasha Murashev’s post. She asked if someone found some better way of handling initializing enums with optional values. I think here is described a better one.
Need to master Core Data? I finished reading one book right now, it’s really great.