This file contains 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
import UIKit | |
extension CACornerMask { | |
static var noCorners: CACornerMask { return [] } | |
static var topLeftCorner: CACornerMask { return .layerMinXMinYCorner } | |
static var topRightCorner: CACornerMask { return .layerMaxXMinYCorner } | |
static var bottomLeftCorner: CACornerMask { return .layerMinXMaxYCorner } | |
static var bottomRightCorner: CACornerMask { return .layerMaxXMaxYCorner } | |
This file contains 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
func onAppOpenAttribution(_ attributionData: [AnyHashable: Any]) { | |
// If opening app from onelink shortlink we check for `af_dp` property | |
if let deeplink = attributionData[Keys.deeplink] as? String, | |
let deeplinkURL = URL(string: deeplink) { | |
delegate?.setDeeplinkURL(deeplinkURL) | |
return | |
} | |
// Else we get `link` property and and parse it's params |
This file contains 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
constraints = [NSLayoutConstraint constraintsWithVisualFormat:@"H:|-8-[_spotNameLabel(<=140)]" | |
options:NSLayoutFormatAlignAllBaseline | |
metrics:nil | |
views:viewsDictionary]; | |
constraints = [NSLayoutConstraint constraintsWithVisualFormat:@"H:|-0-[_spotNameSeparator(==_spotNameLabel)]" | |
options:NSLayoutFormatAlignAllBaseline | |
metrics:nil | |
views:viewsDictionary]; |
This file contains 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
// | |
// TMViewDeckController.h | |
// | |
// Created by Martin Pilch on 4/25/13. | |
// Copyright (c) 2013 Martin Pilch. All rights reserved. | |
// | |
#import <UIKit/UIKit.h> | |
@interface TMViewDeckController : UIViewController |
This file contains 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
// | |
// UIImageView+DownloadProgress.h | |
// | |
// | |
// Created by Martin Pilch on 3/29/13. | |
// | |
// | |
#import "UIImageView+AFNetworking.h" |
This file contains 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
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { | |
//... Initialization of application | |
//Screen notification handlers | |
NSNotificationCenter *center = [NSNotificationCenter defaultCenter]; | |
[center addObserver:self selector:@selector(handleScreenDidConnectNotification:) | |
name:UIScreenDidConnectNotification object:nil]; | |
[center addObserver:self selector:@selector(handleScreenDidDisconnectNotification:) | |
name:UIScreenDidDisconnectNotification object:nil]; |
This file contains 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
[dictionary putStringValue:@"facebook" forKey:@"provider"]; | |
[dictionary putStringValue:@"109322029116699" forKey:@"facebookAppId"]; | |
[dictionary putStringValue:@"tw4" forKey:@"facebookLocalAppId"]; | |
[dictionary putStringValue:@"email,user_birthday,user_location,publish_stream,offline_access" forKey:@"facebookExtraPermissions"]; |
This file contains 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
GSObject *dictionary = [[[GSObject alloc] init] autorelease]; | |
[dictionary putStringValue:@"facebook" forKey:@"provider"]; | |
[dictionary putStringValue:@"109322029116699" forKey:@"facebookAppId"]; | |
[dictionary putStringValue:@"tw4" forKey:@"facebookLocalAppId"]; | |
[dictionary putStringValue:@"email,user_birthday,user_location,publish_stream,offline_access" forKey:@"facebookExtraPermissions"]; |
This file contains 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
@interface MPActivityIndicator : UIView | |
@property (nonatomic, readonly, getter = isAnimating) BOOL animating; | |
- (void)stopAnimating; | |
- (void)startAnimating; | |
- (void)rotateLoadingCircleByPercents:(CGFloat)percents; | |
@end |
This file contains 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
{ | |
data = { | |
clips = ( | |
{ | |
"clip_board_ids" = ( | |
7925 | |
); | |
creator = { | |
id = 823408; | |
name = "Martin Pilch"; |
NewerOlder