Generate gcda-files with Xcode5, iOS7 simulator and XCTest

Update 1: After reading a bit more about this, 2 things have now become clear to me (emphasis added): Tests and the tested application are compiled separately. Tests are actually injected into the running application, so the __gcov_flush() must be called inside the application not inside the tests. — Xcode5 Code Coverage (from cmd-line for … Read more

How to properly position the back button in iOS7

EDIT I think I might have found the trick (in iOS 7 Design Resource — UIKit User Interface Catalog.) Under Bar Button Items Note that a bar button image will be automatically rendered as a template image within a navigation bar, unless you explicitly set its rendering mode to UIImageRenderingModeAlwaysOriginal. For more information, see Template … Read more

How to support dynamic type in labels in iOS 7?

If you use the new UIFont methods then you’re pretty much there – you just need to add the observer to listen for changes. Rather than setting a specific font size, you should use the preferredFontForTextStyle: and related methods when styling your labels (if you’re using Interface Builder you can select a style directly in … Read more

Finding distance from RSSI value of Bluetooth Low Energy enabled device

I answered this in another thread, repeating it here. In line-of-sight (no obstacles causing change in RSSI), -6dB seems to be double the distance. If you at 1m distance read RSSI -40dB then 2m gives -46dB, 4m gives -52dB, 8m gives -58dB, 16m gives -64dB. You can not get an exact position, only a circular … Read more