Skip to content

Instantly share code, notes, and snippets.

@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 / 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 / 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 / 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 / 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 / gist:3872250
Created October 11, 2012 13:24
Activate Accesibility
NSString *appSupportLocation = @"/System/Library/PrivateFrameworks/AppSupport.framework/AppSupport";
NSDictionary *environment = [[NSProcessInfo processInfo] environment];
NSString *simulatorRoot = [environment objectForKey:@"IPHONE_SIMULATOR_ROOT"];
if (simulatorRoot) {
appSupportLocation = [simulatorRoot stringByAppendingString:appSupportLocation];
}
void *appSupportLibrary = dlopen([appSupportLocation fileSystemRepresentation], RTLD_LAZY);
@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 / UIImage+H568.m
Last active October 6, 2022 16:35
iPhone5 UIImage method swizzling to load -568h images
//
// UIImage+H568.m
//
// Created by Angel Garcia on 9/28/12.
// Copyright (c) 2012 angelolloqui.com. All rights reserved.
//
#import <objc/runtime.h>
@implementation UIImage (H568)
@angelolloqui
angelolloqui / RKRequest+CacheControl.h
Created August 15, 2012 14:52
RestKit addition to add a new cache policy that checks the Cache-Control HTTP header
//
// RKRequest+CacheControl.h
//
// Created by Angel on 8/10/12.
// Copyright (c) 2012 Xaton. All rights reserved.
//
#import "RKRequest.h"
@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'