Skip to content

Instantly share code, notes, and snippets.

View NSStudent's full-sized avatar
🏠
Working from home

Omar NSStudent

🏠
Working from home
View GitHub Profile
@jmoreno
jmoreno / ZNOrigamiSegue.m
Created April 29, 2013 23:14
UIStoryboardSegue for Origami
//
// ZNOrigamiSegue.m
// mindcar
//
// Created by Javi on 17/04/13.
// Copyright (c) 2013 Zink In Apps!. All rights reserved.
//
#import "ZNOrigamiSegue.h"
@eternalstorms
eternalstorms / Apple Evangelists.txt
Created June 12, 2013 09:07
Apple Evangelists (WWDC 2013)
UI- and App Frameworks Evangelist - Jake Behrens, behrens@apple.com, twitter: @Behrens
- What's new in Cocoa
- Accessibility in iOS
- Building User Interfaces for iOS 7
- Getting Started with UIKit Dynamics
- What's new in Cocoa Touch
- What's New With Multitasking
- Best Practices for Cocoa Animation
- Improving Power Efficiency with App Nap
- Introducing Text Kit
@mayoff
mayoff / ViewController.m
Created June 14, 2013 23:53
Example of using auto layout to make a container view as tall as its tallest subview, but no taller. For http://stackoverflow.com/q/17117799/77567 .
#import "ViewController.h"
@interface ViewController ()
@end
@implementation ViewController {
UIView *containerView;
NSArray *subviews;
@Lascorbe
Lascorbe / AutoincrementVersion.sh
Last active December 19, 2015 16:19
instructions added
#!/bin/sh
# Increments automatically CFBundleVersion or CFBundleVersion and CFBundleShortVersionString depending if it's a Debug or Release version.
# Created by Luis Ascorbe on 12/04/13.
# Copyright 2013 Luis Ascorbe. All rights reserved.
# Instructions
# 1- Put this file on the same folder where it's the .xcodeproj file
# 2- Create a new Run Script on Build Phases BEFORE Compile Sources
# 3- Rename it as "Auto Increment Version" (or whatever you want)
@JaviSoto
JaviSoto / gist:6516942
Created September 10, 2013 22:57
iOS 7 Parallax effect
@interface UIView (JSParallaxEffect)
- (void)js_addParallaxEffectWithMaxOffset:(CGFloat)maxOffset;
@end
@Shilo
Shilo / NSAttributedString+Attributes.h
Created September 23, 2013 03:50
A category for NSAttributedString and NSMutableAttributedString to easily get or set sub-attributes.
//
// NSAttributedString+Attributes.h
// A category for NSAttributedString and NSMutableAttributedString to easily get or set sub-attributes.
//
// Created by Shilo White on 9/22/13.
// Copyright (c) 2013 XIDA Design & Technik. All rights reserved.
//
#import <Foundation/Foundation.h>
@mattt
mattt / UIImageForSwatchOfColorWithSize.h
Created September 27, 2013 01:25
Create a UIImage swatch of a color with a specified size.
static UIImage * UIImageForSwatchOfColorWithSize(UIColor *color, CGSize size) {
UIImage *image = nil;
CGRect rect = CGRectMake(0.0f, 0.0f, size.width, size.height);
UIGraphicsBeginImageContext(rect.size);
{
CGContextRef c = UIGraphicsGetCurrentContext();
CGContextSetFillColorWithColor(c, [color CGColor]);
@PMUNOZ08
PMUNOZ08 / NSDate+Utilities.h
Last active March 1, 2019 23:07
NSDate category to make easy to work with date components
//
// NSDate+Utilities.h
//
// Created by PEDRO MUÑOZ CABRERA on 15/03/13.
// Copyright (c) 2013. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface NSDate (Utilities)
@steventroughtonsmith
steventroughtonsmith / gist:6763213
Created September 30, 2013 12:39
Non-opaque application windows in iOS 7, with optional blur. Shows the user's wallpaper under the app, with Parallax if supported.
typedef enum _UIBackgroundStyle {
UIBackgroundStyleDefault,
UIBackgroundStyleTransparent,
UIBackgroundStyleLightBlur,
UIBackgroundStyleDarkBlur,
UIBackgroundStyleDarkTranslucent
} UIBackgroundStyle;
@interface UIApplication (UIBackgroundStyle)
-(void)_setBackgroundStyle:(UIBackgroundStyle)style;
@Lascorbe
Lascorbe / facebook_meesenger_licenses.md
Last active December 28, 2015 07:29
Third party software/code used by the Facebook Messenger app (iOS)