Skip to content

Instantly share code, notes, and snippets.

@angelolloqui
angelolloqui / UIView+Hack.m
Last active August 29, 2015 13:56
Hack into Pixate to set the cornerRadius into the layer
#import <objc/runtime.h>
@protocol Custom_PXBoxModel <NSObject>
- (BOOL)hasCornerRadius;
- (CGSize)radiusTopLeft;
- (CGSize)radiusTopRight;
- (CGSize)radiusBottomRight;
- (CGSize)radiusBottomLeft;
@end
@angelolloqui
angelolloqui / PayPalMPL.podspec.json
Last active August 29, 2015 14:03
PayPalMPL pod pointing to specific commit. Tired of asking PayPal to not remove old versions as CocoaPods breaks every time they make a new release.
{
"name": "PayPalMPL",
"version": "2.1.3",
"summary": "PayPal MPL Payment library for iOS.",
"homepage": "https://www.paypal.com",
"license": {
"type": "Copyright",
"text": " Copyright (c) 2014 PayPal\n"
},
"authors": "PayPal",
@angelolloqui
angelolloqui / ShareKit-FB-Twitter.podspec
Created June 27, 2012 10:58
Spec pointing to angelolloqui fork with some fixes
Pod::Spec.new do |s|
s.name = 'ShareKit-FB-Twitter'
s.version = '2.0'
s.platform = :ios
s.summary = 'Drop in sharing features for all iPhone and iPad apps.'
s.homepage = 'https://github.com/ShareKit/ShareKit'
s.author = { 'ShareKit Community' => 'No Email' }
s.source = { :git => 'https://github.com/angelolloqui/ShareKit.git', :commit => '176a851624de87506773d0137bd780d494544fbe' }
s.resource = 'Classes/ShareKit/ShareKit.bundle', 'Classes/ShareKit/Core/SHKSharers.plist'
@angelolloqui
angelolloqui / MHTabBarController.podspec
Created October 4, 2012 08:50
Spec for MHTabBarController pointing to my fork
Pod::Spec.new do |s|
s.name = 'MHTabBarController'
s.version = '0.0.1'
s.platform = :ios
s.license = 'MIT'
s.summary = 'Custom container view controller for iOS 5 that works just like a regular UITabBarController, except the tabs are at the top and look different.'
s.homepage = 'http://www.hollance.com/2011/11/mhtabbarcontroller-a-custom-tab-bar-for-ios-5-using-the-new-container-apis/'
s.source = { :git => 'https://github.com/angelolloqui/MHTabBarController.git' }
s.source_files = '**/MHTabBarController*.{h,m}'
s.resources = 'Images/*.png'
@angelolloqui
angelolloqui / Xaton-iOS.podspec
Created November 26, 2012 13:23
PodSpec for Xaton-iOS
Pod::Spec.new do |s|
s.name = 'Xaton-iOS'
s.version = '1.2.8'
s.platform = :ios
s.license = 'MIT'
s.summary = 'iOS lib with Xaton generic components'
s.homepage = 'https://github.com/Xaton/Xaton-iOS'
s.authors = {
'Xaton' => 'http://xaton.com'
}
@angelolloqui
angelolloqui / XTRestLayer.podspec
Last active December 16, 2015 09:18
PodSpec for XTRestLayer with AFNetworking
Pod::Spec.new do |s|
s.name = 'XTRestLayer'
s.version = '0.0.4'
s.platform = :ios
s.license = 'MIT'
s.summary = 'Xaton iOS Rest lib'
s.homepage = 'https://github.com/Xaton/XTRestLayer'
s.authors = {
'Xaton' => 'http://xaton.com'
}
@angelolloqui
angelolloqui / XTModel.podspec
Last active December 17, 2015 07:49
XTModel pod spec
Pod::Spec.new do |s|
s.name = "XTModel"
s.version = "0.0.1"
s.summary = "Model wrapper to give a uniform interface no matter the persisting technology used. Supports CoreData models as well as in memory"
s.homepage = "http://xaton.com"
s.license = {:type => 'Copyright', :text => "Copyright (c) 2013 Xaton B.V."}
s.author = "Xaton B.V."
s.source = { :git => "https://github.com/Xaton/Xaton-iOS.git"}
s.platform = :ios, '5.0'
s.source_files = 'XTModel/XTModel.h', 'XTModel/XTModelAccessor.h'
@angelolloqui
angelolloqui / MOInputAccessoryView.h
Created June 5, 2013 13:51
Simple accessoryview to deal with the Done button on keyboards with type UIKeyboardTypeNumberPad
#import <UIKit/UIKit.h>
@interface MOInputAccessoryView : UIButton
+ (MOInputAccessoryView *)inputAccessoryViewForTextField:(UITextField *)textfield;
@end
@angelolloqui
angelolloqui / Xaton-iOS.podspec
Last active December 28, 2015 20:58
Gist for Xaton-iOS libraries
Pod::Spec.new do |s|
s.name = 'Xaton-iOS'
s.version = '1.2.12'
s.platform = :ios
s.license = 'MIT'
s.summary = 'iOS lib with Xaton generic components'
s.homepage = 'https://github.com/Xaton/Xaton-iOS'
s.authors = {
'Xaton' => 'http://xaton.com'
}
@angelolloqui
angelolloqui / MOFAddress.h
Last active January 4, 2016 19:09
Simple example of using a Transformable object as part of a CoreData model. Use it only for very simple objects, with no relations.
@interface MOFAddress : NSObject <NSCoding>
@property (nonatomic, strong) NSString *city;
@property (nonatomic, strong) NSString *number;
@property (nonatomic, strong) NSString *street;
@property (nonatomic, strong) NSString *postCode;
@property (nonatomic, strong) NSString *location;
@end