Skip to content

Instantly share code, notes, and snippets.

View bolzone's full-sized avatar

Bolle bolzone

View GitHub Profile
@bolzone
bolzone / sorting.m
Created January 11, 2019 13:29 — forked from edenwaith/sorting.m
Objective-C Searching and Sorting with NSPredicate
/*
* File: sorting.m
* Author: Chad Armstrong
* Date: 22 September 2014
* To compile: gcc -g -Wall -framework Foundation -o sorting sorting.m
*/
#import <Foundation/Foundation.h>
void printByAge(NSArray *people);
@bolzone
bolzone / gist:bf0cdfd905ecbdfbfeadf0502fe06441
Created August 7, 2018 09:42 — forked from steipete/ios-xcode-device-support.sh
Using iOS 12 devices with Xcode 9
// The trick is to link the DeviceSupport folder from the beta to the stable version.
// Updated on Aug 6th, 2018 for Xcode 10b5
ln -s /Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/12.0\ \(16A5339e\) /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport
// Then restart Xcode and reconnect your devices. You will need to do that for every beta of future iOS versions
// sudo needed if you run the Mac App Store version. Always download the dmg instead... you'll thank me later :)
@bolzone
bolzone / gist:401683c0b317c9afa3e5643e1bf9de47
Created March 28, 2017 12:01 — forked from computerality/gist:3e0bc104cd216bf0f03f8d3aa8fbf081
iOS Security Guide changes for iOS 10 from March 2017
These are additions or notable revisions in the iOS Security Guide
Document Revision History Summary Updated for iOS 10
• System Security
• Data protection classes
• Security Certifications and programs
• HomeKit, ReplayKit, SiriKit
• Apple Watch
• Wi-Fi,VPN
• Single Sign-on
• Apple Pay, Paying with Apple Pay on the web
@bolzone
bolzone / ocmock-cheatsheet.m
Created June 23, 2016 14:52 — forked from kharmabum/ocmock-cheatsheet.m
OCMock cheatsheet
/*----------------------------------------------------*/
#pragma mark - XCTAsserts
/*----------------------------------------------------*/
XCTAssert(expression, format...);
XCTAssertTrue(expression, format...);
XCTAssertFalse(expression, format...);
XCTAssertEqual(expression1, expression2, format...);
XCTAssertNotEqual(expression1, expression2, format...);
XCTAssertNil(expression, format...);