[Objc] Get iOS device color

A simple trick, using private API to get the device COVER color!

Read More

 

[Objc] Fingerprint authentication

A simple tutorial that how to use Apple fingerprint authentication in your iOS8apps on iPhone 5S and plus.

Read More

 

[Objc] Change App language

Hi all,
today a simple trick to change the app languagewithout change phone language.

Read More

 

[Objc] UIDynamicAnimator with CMMotionManager

Today a funny article that use both UIDynamicAnimator and CMMotionManager!

Read More

 

ObjectiveC – Get device color

A simple trick, using private API to get the device COVER color!

You cannot use this in App Store, but you can play with private API:

NSBundle *b = [NSBundle bundleWithPath:@"/System/Library/PrivateFrameworks/FTServices.framework"];

BOOL success = [b load];

Class FTDeviceSupport = NSClassFromString(@"FTDeviceSupport");
id si = [FTDeviceSupport valueForKey:@"sharedInstance"];
NSLog(@"-- %@", [si valueForKey:@"deviceColor"]);}

And output:

TestJW[19775:2776384] -- #3b3b3c

That responds to this one: http://www.color-hex.com/color/3b3b3c

And… yes, my iPhone is dark gray! 

 

Objective-C: Change controller on application background

Yes, you can!
Now you are able to change the snapshot of your app while is in background!

An example here:

Read More
 

[Swift] Swift Koan – Unit test

A framework and lessons to learn Swift syntax and idioms in a logical sequence.

Original github project here: https://github.com/elpsk/Swift-Koan. Stay tuned for updates.

Read More

 

[Objc] User defined runtime attributes

User defined runtime attributes are the hidden gem of Xcode’s Interface Builder. Available since Xcode 4 and iOS 5, they provide the ability to configure properties of a view that you would otherwise be unable to configure in Interface Builder.

Read More

 

[Xcode] – Introduction to Auto Layout

Editor’s note: If you’ve downloaded the Xcode 6 beta and played around with it, one thing you may notice is the change of Interface Builder. The default view controller is now wider and doesn’t look like an iPhone 5. When you position a button in the center of the view and run the app, it doesn’t look good. The button is not centered properly.

Read More

 

[Objc] How to get SecKeyRef from base64 coded string

This quick iOS Application Development tip will show you How to get SecKeyRefM from base64 coded string, which for iOS 7 utilises: So, let’s assume that you have a base64 coded public key, like:

MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQC3gn+tJ1+PbP0GHa6hmM35WsVyibpypWAwRuBYY4MGfh3VWoXgiyiLo5HJTW1eR9BUFq3z+yOG1rwzSabZ8I4zneWm0kH7xErSjNrMbmjirbL7e6TQNa1ujP/x4x9XVbqf3vIsNVs19kn/qSX/HGzd5Ct3TGAo0AT0T4JwkCfciwIDAQAB

Read More