Cocoa Pods Cocoapods Basic Cheat Sheet
Create a Podfile
at the root of your project
platform :ios, '5.0'
pod 'AFNetworking'
pod 'OHAttributedLabel'
{ | |
"orders": [] | |
} |
<?php | |
/** | |
* @author Divi Space | |
* @copyright 2017 | |
*/ | |
if (!defined('ABSPATH')) die(); | |
function ds_ct_enqueue_parent() { wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' ); } | |
function ds_ct_loadjs() { |
let foregroundTopConstraint = self.contentView.constraints.filter{ $0.identifier == "ForegroundViewTop"}.first |
[UIView animateKeyframesWithDuration:5.0 delay:0.0 options:0 animations:^{ | |
[UIView addKeyframeWithRelativeStartTime:0.0 relativeDuration:0.5 animations:^{ | |
self.verticalPosition.constant = 200.0; | |
[self.view layoutIfNeeded]; | |
}]; | |
[UIView addKeyframeWithRelativeStartTime:0.5 relativeDuration:0.25 animations:^{ | |
self.verticalPosition.constant = 50.0; | |
[self.view layoutIfNeeded]; | |
}]; | |
[UIView addKeyframeWithRelativeStartTime:0.75 relativeDuration:0.125 animations:^{ |
myPopAnimation.completionBlock = {(animation, finished) in | |
//Code goes here | |
} |
Create a Podfile
at the root of your project
platform :ios, '5.0'
pod 'AFNetworking'
pod 'OHAttributedLabel'
With button selectors you can implement the @selector but might choose to implement the method in the View Controller and not the button subclass for example. You will receive an undeclared selector warning for this to let you know the method is not implemented but this is acceptable behaviour, so you can use the following to hide the warnings.
// Ignore undeclared selector warnings as this method is implemented in the VC
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wundeclared-selector"
[moreButton addTarget:nil action: @selector(userPressedShareBasementButton:) forControlEvents: UIControlEventTouchUpInside];
#pragma clang diagnostic pop