This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
UIToolbar *tools = [[UIToolbar alloc] | |
initWithFrame:CGRectMake(0.0f, 0.0f, 103.0f, 44.01f)]; // 44.01 shifts it up 1px for some reason | |
tools.clearsContextBeforeDrawing = NO; | |
tools.clipsToBounds = NO; | |
tools.tintColor = [UIColor colorWithWhite:0.305f alpha:0.0f]; // closest I could get by eye to black, translucent style. | |
// anyone know how to get it perfect? | |
tools.barStyle = -1; // clear background | |
NSMutableArray *buttons = [[NSMutableArray alloc] initWithCapacity:3]; | |
// Create a standard refresh button. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
+ (NSString *) sanitizeValue: (NSString *)value | |
{ | |
NSString *sanitizedValue = [value stringByReplacingOccurrencesOfString:@"&" withString:@"&"]; | |
sanitizedValue = [sanitizedValue stringByReplacingOccurrencesOfString:@""" withString:@"\""]; | |
sanitizedValue = [sanitizedValue stringByReplacingOccurrencesOfString:@"’" withString:@"'"]; | |
sanitizedValue = [sanitizedValue stringByReplacingOccurrencesOfString:@"“" withString:@"'"]; | |
return sanitizedValue; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CGRect _f = CGRectMake(0, 0, 200, 200); | |
CGFloat xPosition = CGRectGetWidth(self.view.frame) - CGRectGetWidth(_f); | |
_f.origin = CGPointMake(ceil(xPosition), 0.0); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0"?> | |
<!DOCTYPE cross-domain-policy SYSTEM "http://www.adobe.com/xml/dtds/cross-domain-policy.dtd"> | |
<cross-domain-policy> | |
<!-- Read this: www.adobe.com/devnet/articles/crossdomain_policy_file_spec.html --> | |
<!-- Most restrictive policy: --> | |
<site-control permitted-cross-domain-policies="none"/> |