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
// Photoshop Script to Create iPhone Icons from iTunesArtwork | |
// | |
// WARNING!!! In the rare case that there are name collisions, this script will | |
// overwrite (delete perminently) files in the same folder in which the selected | |
// iTunesArtwork file is located. Therefore, to be safe, before running the | |
// script, it's best to make sure the selected iTuensArtwork file is the only | |
// file in its containing folder. | |
// | |
// Copyright (c) 2010 Matt Di Pasquale | |
// Added tweaks Copyright (c) 2012 by Josh Jones http://www.appsbynight.com |
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
extension UIFont { | |
public static func prettyPrintFontNames() { | |
var fonts = [String:[String]]() | |
for fontFamilyName in UIFont.familyNames { | |
for fontName in UIFont.fontNames(forFamilyName: fontFamilyName) { | |
var collection = fonts[fontFamilyName] ?? [String]() | |
collection.append(fontName) | |
fonts[fontFamilyName] = collection.sorted() |
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
/* | |
* | |
* Copyright (c) 2014 Wayne Hartman | |
* | |
* Permission is hereby granted, free of charge, to any person obtaining a copy of | |
* this software and associated documentation files (the "Software"), to deal in the | |
* Software without restriction, including without limitation the rights to use, | |
* copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the | |
* Software, and to permit persons to whom the Software is furnished to do so, subject | |
* to the following conditions: |
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
// | |
// UISwitch+ForChrisLowe.h | |
// | |
// Created by Wayne on 1/19/13. | |
// Copyright (c) 2013 WayneHartman. All rights reserved. | |
// | |
#import <UIKit/UIKit.h> | |
@interface UISwitch (ForChrisLowe) |
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
#pragma mark - UIWebViewDelegate | |
- (void)webView:(UIWebView *)webView didFailLoadWithError:(NSError *)error { | |
if (error.code != NSURLErrorCancelled) { | |
} | |
} | |
- (void)webViewDidFinishLoad:(UIWebView *)webView { | |