ios - Change the font of a UIBarButtonItem

To be precise, this can be done as below [buttonItem setTitleTextAttributes:[NSDictionary dictionaryWithObjectsAndKeys: [UIFont fontWithName:@"Helvetica-Bold" size:26.0], NSFontAttributeName,... Read More

ios - UIWebView delegate method shouldStartLoadWithRequest: equivalent in WKWebView?

I've been looking for a good explanation myself, but haven't found one. I've used the following in my app and everything seems to work ( Edit: updated based on ccoroom's comment): UIWebViewDelegate... Read More

Porting iOS to Android

These elements are specifically recommended against in the Android design guidelines: While the guidelines are simply guidelines, it's i... Read More

ios - Could not load the "" image referenced from a nib in the bundle with identifier

Select your image(s) in Project Navigator. Open the File Inspector. Make sure you have the target selected.... Read More

ios - UIButton title text color

use Objective-C [headingButton setTitleColor:[UIColor colorWithRed:36/255.0 green:71/255.0 blue:113/255.0 alpha:1.0] forState:UIControlStateNormal]; Swift headingButton.setTitleColor(.black, for: .n... Read More

ios - How can I concatenate NSAttributedStrings?

I'd recommend you use a single mutable attributed string a @Linuxios suggested, and here's another example of that: NSMutableAttributedString *mutableAttString = [[NSMutableAttributedString alloc] in... Read More

iphone - "Plain Style unsupported in a Navigation Item" warning with my customized Bar Button Item

I was able to remove these errors by manually editing the storyboard files and find the offending style="plain" entry on Bar Button items in the <navigationItem> element. Changed from: <barButtonItem... Read More

Modal view for iPad in iOS 7

Short answer: there's no required behavior change from iOS 6 to iOS 7 for modal screens - only the recommended styles (and how 'tint' color) changes. See the Temporary Views page in the iOS 7 UI Tran... Read More

ios - "fatal error: array cannot be bridged from Objective-C"—Why are you even trying, Swift?

I have found a solution. It is quite... unsatisfying , but it works. Where I set the array on the destination view controller I do: destinationViewController.options ={$0 as Option})... Read More

swift - Loading an "overlay" when running long tasks in iOS

The above answers add a loading view but it doesn't block click events on the screen also it does not provides overlay for rest of screen. You can achieve it as follows: let alert = UIAlertController... Read More