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 "CenterLayoutPaging.h" | |
@implementation CenterLayoutPaging | |
- (void)awakeFromNib | |
{ | |
[super awakeFromNib]; | |
self.itemSize = CGSizeMake(CGRectGetWidth(self.collectionView.frame) / 1.2, CGRectGetHeight(self.collectionView.frame)); |
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
// | |
// CenterLayoutPaging.m | |
// POCCollection | |
// | |
// Created by Hipolito Arias on 5/11/16. | |
// Copyright © 2016 Hipolito Arias. All rights reserved. | |
// | |
#import "CenterLayoutPaging.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
@import Foundation; | |
@interface TTPopAnimator : NSObject <UIViewControllerAnimatedTransitioning> | |
@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
fastlane_version "1.111.0" | |
scheme = "YOur scheme project" | |
configuration = "Release" # Debug or Release | |
project_name = "Your Project Name" | |
export_method = "enterprise" # app-store, ad-hoc, package, enterprise, development, developer-id | |
timestamp = Date.parse(Time.now.to_s) | |
ipa_name = "#{project_name}_#{timestamp}.ipa" |
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 | |
@IBDesignable | |
class HATextField: UITextField { | |
override func textRect(forBounds bounds: CGRect) -> CGRect { | |
return CGRect(x: bounds.origin.x + iconWidth*2, y: bounds.origin.y, width: bounds.width, height: bounds.height) | |
} | |
override func editingRect(forBounds bounds: CGRect) -> CGRect { |
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 WebKit | |
public class CustomWebView: WKWebView { | |
// var javascript: Javascript! | |
public override init(frame: CGRect, configuration: WKWebViewConfiguration = WKWebViewConfiguration()) { | |
super.init(frame: frame, configuration: configuration) | |
doInit() |
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
default_platform(:ios) | |
platform :ios do | |
desc "Description of what the lane does" | |
lane :generate_ipa_develop do | |
build_ios_app( | |
configuration: "Debug", | |
scheme: "Test", | |
clean: true, | |
export_method: 'development', | |
output_directory: "~/Desktop", # Destination directory. Defaults to current directory. |
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 WatchKit | |
import Foundation | |
class InterfaceController: WKInterfaceController { | |
@IBOutlet weak var table: WKInterfaceTable! | |
@IBAction func sendMessage() { | |
} |
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
class InterfaceController: WKInterfaceController { | |
// ... | |
// MARK: - Items Table | |
private var items = [String]() { | |
didSet { | |
DispatchQueue.main.async { | |
self.updateTable() |
OlderNewer