Is there a medium weight font between -systemFontOfSize: and -boldSystemFontOfSize:?
Starting with iOS 8.2 you can use: [UIFont systemFontOfSize:14 weight:UIFontWeightMedium];
Starting with iOS 8.2 you can use: [UIFont systemFontOfSize:14 weight:UIFontWeightMedium];
I usually use .bind(“click touchstart”, function(){ }); instead of: .click(function(){ }); That way you are binding the the correct event. It’s also quicker, the touch responds much faster than click for some reason.
Overriding disablesAutomaticKeyboardDismissal to return NO as below fixed the same problem of mine. You should put this code to your view controller, from which you initiate the keyboard: – (BOOL)disablesAutomaticKeyboardDismissal { return NO; } Also, check this SO question if you want to get a detailed explanation.
Menu Bar: Window->scale as shown in comments by chpwn.
The root cause is PNG format doesn’t have image orientation information, but JPEG format does. So the easiest way to solve this problem is saving your file in JPEG format using UIImageJPEGRepresentation()
Another approach I’ve tried that does seem to be improving things is to set the minificationFilter: [imageView.layer setMinificationFilter:kCAFilterTrilinear] The quality is certainly improved and I haven’t noticed a performance hit.
First, remove all explicit setting of modal presentation style in code and do the following: In the storyboard set the ModalViewController’s modalPresentation style to Over Current context Check the checkboxes in the Root/Presenting ViewController – Provide Context and Define Context. They seem to be working even unchecked.
Use instead <div [ngStyle]=”{background: ‘url(/img/’ + item.img + ‘)’, width: ‘200px’, height: ‘150px'”></div> or <div [style.background]=”‘url(/img/’ + item.img + ‘)'” [style.width.px]=”200″ [style.height.px]=”150p”></div> See also In RC.1 some styles can’t be added using binding syntax
To keep it device independent, rather use it as shown in the snippet below. This code will return nil for popoverPresentationController on an iPhone / compact size device, so you can safely use it in universal projects. if let popoverPresentationController = shareMenu.popoverPresentationController { popoverPresentationController.sourceView = self.view popoverPresentationController.sourceRect = sender.bounds } self.presentViewController(shareMenu, animated: true, completion: nil)
You can find it in the main bundle. I think it’s something like: [[[NSBundle mainBundle] infoDictionary] objectForKey:@”CFBundleShortVersionString”];