returnType (^blockName)(parameterTypes) = ^returnType(parameters) {...};
@property (nonatomic, copy, nullability) returnType (^blockName)(parameterTypes);
#import <UIKit/UIKit.h> | |
@import SafariServices; | |
@interface AViewController : UIViewController | |
// | |
// ... | |
// | |
@end |
#pragma mark - BTDurableView | |
@interface BTDurableView : UIView | |
@end | |
@implementation BTDurableView | |
// |
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]; |
// | |
// UILabel+UtilityAttributes.h | |
// | |
// Created by Paulo Almeida on 1/31/14. | |
// | |
#import <UIKit/UIKit.h> | |
@interface UILabel (UtilityAttributes) |
plutil -convert json Data.plist -o Data.json |
// | |
// UIImage+squareImage.h | |
// | |
// Created by CreatureSurvive on 1/24/18. | |
// Copyright © 2018 CreatureCoding. All rights reserved. | |
// | |
#import <UIKit/UIKit.h> | |
enum { |
# @Author: Dana Buehre <creaturesurvive> | |
# @Email: [email protected] | |
# @Filename: update-cli.sh | |
# @Copyright: Copyright © 2014-2018 CreatureCoding | |
#!/bin/bash | |
CLEAR='\033[0m' | |
RED='\033[1;31m' | |
YELLOW='\033[1;33m' |
-(id)tableView:(UITableView *)tableView trailingSwipeActionsConfigurationForRowAtIndexPath:(NSIndexPath *)indexPath { | |
return [self getRowActions:tableView indexPath:indexPath]; | |
} | |
-(id)tableView:(UITableView *)tableView editActionsForRowAtIndexPath:(NSIndexPath *)indexPath { | |
return [self getRowActions:tableView indexPath:indexPath]; | |
} | |
-(id)getRowActions:(UITableView *)tableView indexPath:(NSIndexPath *)indexPath { | |
if (@available(iOS 11, *)) { | |
UIContextualAction *delete = [UIContextualAction contextualActionWithStyle:UIContextualActionStyleDestructive | |
title:@"DELETE" |
/* | |
* Unity Batch Burner: A script designed to reduce static mesh draw calls automatically in scenes | |
* with a large amount of static geometry entities. | |
* | |
* Copyright 2016-2017 Will Preston & Die-Cast Magic Studios, LLC. | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* |