Skip to content

Instantly share code, notes, and snippets.

View matiaz's full-sized avatar
😎
creating...

matiaz matiaz

😎
creating...
  • Senior iOS Developer
  • Costa Rica
  • X @immatiaz
View GitHub Profile
@matiaz
matiaz / gist:6bf1431321842927bb16
Created February 6, 2015 18:48
Base64 to UIImage Example for Rafa
// You are here !
NSMutableArray *imagesArray; // <- Somewhere in your code || this is the image's Array
NSString *strCaptured; // <- Something
if ([strCaptured isEqualToString:@"Icon"]) {
[imagesArray addObject:@"Something"];
}
// That's what you already do right ?
@matiaz
matiaz / gist:7436054
Last active December 28, 2015 03:38
#dev #mac #xcode -Add App to start /load / open on login -Agregar el App a que se inicie / cargue / abra después de iniciar la sesión
-(void) deleteAppFromLoginItem{
NSString * appPath = [[NSBundle mainBundle] bundlePath];
// This will retrieve the path for the application
// For example, /Applications/test.app
CFURLRef url = (__bridge CFURLRef)[NSURL fileURLWithPath:appPath];
// Create a reference to the shared file list.
LSSharedFileListRef loginItems = LSSharedFileListCreate(NULL,
kLSSharedFileListSessionLoginItems, NULL);
- (id)initWithStyle:(UITableViewStyle)style
{
self = [super initWithStyle:style];
if (self) {
// Custom initialization
}
return self;
}