This can be frustrating at first time, but this method is for C structures, for comparing NSString with another one just use: NSString* mystring = [NSString stringWithFormat:@”%@”, [dict […]
Quick tipe: How to set the height of a Today Widget Extension?
Problem seems to be funny, but it is not such obvious as we cannot set view height directly. So in: – (void)viewDidLoad just add: self.preferredContentSize = CGSizeMake(0, 300); […]
Xcode 6.1.1 GM is now available
Apple on Friday issued to developers a golden master build of the upcoming Xcode 6.1.1 update, bringing bug fixes for Xcode Server, the Swift programming language and Interface […]
Quick tip: Localizable.strings – validation failed
This can be really painfull – you made you translation and at compiling time you see such error: Localizable.strings:0: error: validation failed: The data couldn’t be read because […]
Quick tip: Using background operations with Grand Central Dispatch
Yes, Grad Centeral Dispatch may seems big and complex. But if you need to put some work into background, its pretty easy, all you have to do is: […]
Quick tip: using singleton pattern
So far I saw many examples, but not every of them is valid, follow my rules and you will get proper singleton pattern. in MySingleton.h file: @interface MySingleton : […]
Quick tip: Architecture not supported when compiling for iOS 7.1 using XCode 5.1
Using configuration mentioned above you may receive one of those (or another) errors: types.h – User Defined Issues – Architecture not supported _types.h – User Defined Issues – […]
Quick tip: how to compile for iOS 5.1 under XCode 5
Well first though is to set deployment target to iOS 5.1 but its not so obvious. You have to remove arm64 from Architectures in “Build Settings“
Quick tip: How to hide status bar in iOS 7
It may seem trivial, but usual: [[UIApplication sharedApplication] setStatusBarHidden:YES withAnimation:UIStatusBarAnimationFade]; is not working, nor: [UIApplication sharedApplication].statusBarHidden = YES; Now everything is simplified and minimalistic, so all you have […]