returnType (^blockName)(parameterTypes) = ^returnType(parameters) {...};
@property (nonatomic, copy, nullability) returnType (^blockName)(parameterTypes);
| // | |
| // UIImage+squareImage.h | |
| // | |
| // Created by CreatureSurvive on 1/24/18. | |
| // Copyright © 2018 CreatureCoding. All rights reserved. | |
| // | |
| #import <UIKit/UIKit.h> | |
| enum { |
| plutil -convert json Data.plist -o Data.json |
| // | |
| // UILabel+UtilityAttributes.h | |
| // | |
| // Created by Paulo Almeida on 1/31/14. | |
| // | |
| #import <UIKit/UIKit.h> | |
| @interface UILabel (UtilityAttributes) |
| NSString *html = @"<div style='font: 18pt Helvetica-Light; color: #3498DB;'>Blue Text<span style='color: #AAAAAA;'>GreyText</span></div>"]; | |
| NSData *htmlData = [html dataUsingEncoding:NSUTF8StringEncoding]; | |
| NSMutableAttributedString *htmlAttributedString = [[NSMutableAttributedString alloc] initWithData:htmlData options:@{NSDocumentTypeDocumentAttribute:NSHTMLTextDocumentType} documentAttributes:nil error:nil]; | |
| [label setAttributedText:htmlAttributedString]; |
| #pragma mark - BTDurableView | |
| @interface BTDurableView : UIView | |
| @end | |
| @implementation BTDurableView | |
| // |
| #import <UIKit/UIKit.h> | |
| @import SafariServices; | |
| @interface AViewController : UIViewController | |
| // | |
| // ... | |
| // | |
| @end |