http://www.sketchappsources.com
http://twitter.com/picsel recommended...
typedef enum _UIBackgroundStyle { | |
UIBackgroundStyleDefault, | |
UIBackgroundStyleTransparent, | |
UIBackgroundStyleLightBlur, | |
UIBackgroundStyleDarkBlur, | |
UIBackgroundStyleDarkTranslucent | |
} UIBackgroundStyle; | |
@interface UIApplication (UIBackgroundStyle) | |
-(void)_setBackgroundStyle:(UIBackgroundStyle)style; |
static BOOL PSPDFIsDevelopmentBuild(void) { | |
#if TARGET_IPHONE_SIMULATOR | |
return YES; | |
#else | |
static BOOL isDevelopment = NO; | |
static dispatch_once_t onceToken; | |
dispatch_once(&onceToken, ^{ | |
// There is no provisioning profile in AppStore Apps. | |
NSData *data = [NSData dataWithContentsOfFile:[NSBundle.mainBundle pathForResource:@"embedded" ofType:@"mobileprovision"]]; | |
if (data) { |
A list of Sketch plugins hosted at GitHub, in no particular order.
You can get a refund for any app on the App Store by following this process: | |
1. Visit https://reportaproblem.apple.com | |
2. Sign In with your Apple ID. | |
3. Click “Report a Problem” on the offending app. | |
4. Choose “Problem is not listed here” and be sure to mention that you are asking for a refund because it doesn’t work as expected. |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
These instructions will guide you through the process of setting up local, trusted websites on your own computer.
These instructions are intended to be used on macOS Sierra, but they have been known to work in El Capitan, Yosemite, Mavericks, and Mountain Lion.
NOTE: You may substitute the edit
command for nano
, vim
, or whatever the editor of your choice is. Personally, I forward the edit
command to Sublime Text:
alias edit="/Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl"
class MyCell: UITableViewCell { | |
override init(style: UITableViewCellStyle, reuseIdentifier: String?) { | |
super.init(style: style, reuseIdentifier: reuseIdentifier) | |
configureView() | |
} | |
required init(coder aDecoder: NSCoder) { | |
super.init(coder: aDecoder) | |
configureView() |
@interface PSPDFWindow () | |
@property (nonatomic, strong) UIViewController *realRootViewController; | |
@end | |
@implementation PSPDFWindow | |
- (void)setHidden:(BOOL)hidden { | |
[super setHidden:hidden]; | |
// Workaround for rdar://19592583 |
NSDictionary *extensionInfo = [NSBundle.mainBundle objectForInfoDictionaryKey:@"NSExtension"]; | |
NSString *extensionPointIdentifier = extensionInfo[@"NSExtensionPointIdentifier"]; | |
if ([extensionPointIdentifier isEqualToString:@"com.apple.watchkit"]) { | |
NSLog(@"WatchKit extension"); | |
} else if ([extensionPointIdentifier isEqualToString:@"com.apple.widget-extension"]) { | |
NSLog(@"Widget extension"); | |
} else if (extensionPointIdentifier == nil) { | |
NSLog(@"iOS app"); | |
} else { | |
NSLog(@"Unknown extension type"); |