Skip to content

Instantly share code, notes, and snippets.

@pcolton
Created February 10, 2014 23:13
Show Gist options
  • Save pcolton/8926156 to your computer and use it in GitHub Desktop.
Save pcolton/8926156 to your computer and use it in GitHub Desktop.
Remove Pixate from your project by using these temporary placeholder categories.
#import <UIKit/UIKit.h>
@interface UIView (PixatePlaceholder)
@property (nonatomic, copy) NSString *styleId;
@property (nonatomic, copy) NSString *styleClass;
@property (nonatomic, copy) NSString *styleCSS;
@property (nonatomic) int styleMode;
@end
@interface UIBarItem (PixatePlaceholder)
@property (nonatomic, copy) NSString *styleId;
@property (nonatomic, copy) NSString *styleClass;
@property (nonatomic, copy) NSString *styleCSS;
@property (nonatomic) int styleMode;
@end
#import "UIView+PixatePlaceholder.h"
@implementation UIView (PixatePlaceholder)
-(NSString *)styleClass
{
return nil;
}
-(NSString *)styleCSS
{
return nil;
}
-(NSString *)styleId
{
return nil;
}
-(int)styleMode
{
return 0;
}
-(void)setStyleClass:(NSString *)styleClass
{
}
-(void)setStyleCSS:(NSString *)styleCSS
{
}
-(void)setStyleId:(NSString *)styleId
{
}
-(void)setStyleMode:(int)styleMode
{
}
@end
@implementation UIBarItem (PixatePlaceholder)
-(NSString *)styleClass
{
return nil;
}
-(NSString *)styleCSS
{
return nil;
}
-(NSString *)styleId
{
return nil;
}
-(int)styleMode
{
return 0;
}
-(void)setStyleClass:(NSString *)styleClass
{
}
-(void)setStyleCSS:(NSString *)styleCSS
{
}
-(void)setStyleId:(NSString *)styleId
{
}
-(void)setStyleMode:(int)styleMode
{
}
@end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment