Skip to content

Instantly share code, notes, and snippets.

View psy2k's full-sized avatar

Nikos Maounis psy2k

View GitHub Profile
@psy2k
psy2k / Array+Extension.swift
Created January 24, 2016 10:20
Simple swift array extension
//
// Array+Extension.swift
// Array+Extension
//
// Created by Nikos Maounis on 24/1/16.
// Copyright © 2016 Nikos Maounis. All rights reserved.
//
import Foundation
#import <UIKit/UIKit.h>
@interface UIImage (UISegmentIconAndText)
+ (id) imageFromImage:(UIImage*)image string:(NSString*)string color:(UIColor*)color;
@end
@psy2k
psy2k / PopUpFadeIn.m
Last active December 30, 2015 20:19
Fade in of the PopUpViewController
- (void)showAnimate
{
self.view.transform = CGAffineTransformMakeScale(1.3, 1.3);
self.view.alpha = 0;
[UIView animateWithDuration:.25 animations:^{
self.view.alpha = 1;
self.view.transform = CGAffineTransformMakeScale(1, 1);
}];
}