Skip to content

Instantly share code, notes, and snippets.

Matej Bukovinski matej

Block or report user

Report or block matej

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@matej
matej / CALayer+MBAnimationPersistence.h
Last active Apr 26, 2019
Persists (pauses) layer animations (including UIView animation generated animations) when the application enters into background and restores (resumes) animations from where they left off upon returning from background.
View CALayer+MBAnimationPersistence.h
//
// CALayer+MBAnimationPersistence.h
//
// Created by Matej Bukovinski on 19. 03. 14.
// Copyright (c) 2014 Matej Bukovinski. All rights reserved.
//
#import <QuartzCore/QuartzCore.h>
View UIImage+Picker.h
#import <UIKit/UIKit.h>
@interface UIImage (Picker)
- (UIColor *)colorAtPosition:(CGPoint)position;
@end
View MBStronglyTintedNavigationBar.h
//
// MBStronglyTintedNavigationBar.h
//
// Created by Matej Bukovinski on 21. 10. 13.
// Copyright (c) 2013 Matej Bukovinski. All rights reserved.
//
#import <UIKit/UIKit.h>
View .gitignore
#########################
# .gitignore file for Xcode4 / OS X Source projects
#
# Version 2.0
# For latest version, see: http://stackoverflow.com/questions/49478/git-ignore-file-for-xcode-projects
#
# 2013 updates:
# - fixed the broken "save personal Schemes"
#
# NB: if you are storing "built" products, this WILL NOT WORK,
@matej
matej / UIAlertView+Blocks.h
Created Nov 7, 2012
UIAlertView with blocks support
View UIAlertView+Blocks.h
//
// UIAlertView+Blocks.h
//
// Created by Matej Bukovinski on 19.7.11.
// Copyright 2011 Guerrilla Code. All rights reserved.
//
#import <Foundation/Foundation.h>
View GCSSynthesizeUserDefaults
#define GCSynthesizeUserDefaultsGetter(cls, key, instance, name) \
- (cls *)name { \
if (!instance) { \
id o = [[NSUserDefaults standardUserDefaults] objectForKey:(key)]; \
if (![o isKindOfClass:[cls class]]) o = nil; \
\
[o retain]; \
[instance release]; \
instance = o; \
} \
You can’t perform that action at this time.