Alexander Deutsch – Seite 2 – Senior iOS Developer

What’s new in Swift 2.0

Coming with Xcode 7, introduced at WWDC 2015 in June, swift will be updated to 2.0 and there are a lot of useful changes: Improved error handling you can now add throws keyword to your method signature. So you can define an enum ErrorType and throw this specific error in that method. when using the method, you need to surround it with a try, catch block then. For Example: enum DriveError : ErrorType { case .NoEngine case .BrokenEngine } func drive(car Car, route Route) throws DriveError { if car.hasEngine() { car.move(route.destination) } else { throw DriveError.NoEngine } } (mehr …)
Read More

Apple’s Homekit – use current devices using Raspberry Pi

Apple, iOS Dev
When Apple revealed HomeKit at WWDC last year, everyone was excited. Unfortunately there are still no devices available on the market, nor is an application in the store. One cool thing about apple’s homekit is controlling devices using siri. Basically Homekit is already integrated in the current iOS 8 versions, so if you are a developer you can create an app and run it. Hm but what about devices ? So there is one trick outside there, because some guys did a good job reverse engineering apples protocol, you can setup a custom bridge using a raspberry pi for example. I did all that stuff, added my phillips hue lights to the raspberry and some custom devices like the iRobot Roomba Cleaner. And here is the result: Thanks to HAP-NodeJS…
Read More

Smart & Easy Core Data Library: Objective Record

iOS Dev
Wer auf der Suche nach einer einfachen Lösung für die Verwendung von Core Data ist und genug von dem überladenem Code hat, welcher nötig ist um Core Data zu initialisieren (NSPersistentStoreCoordinator, NSManagedObjectContext, etc.) bekommt mit dem Objective Record eine schöne, interessante und einfache Lösung:   Hier ein kleines Beispiel Person *john = [Person create]; = @"John"; [john save]; [john delete]; [Person create:@{ @"name" : @"John", @"age" : @12, @"member" : @NO }];
Read More