Skip to content

Instantly share code, notes, and snippets.

View xieweizhi's full-sized avatar
🎯
Focusing

Weizhi xieweizhi

🎯
Focusing
View GitHub Profile
@xieweizhi
xieweizhi / Breakpoints_v2.xcbkptlist
Created October 15, 2015 09:22 — forked from Ashton-W/Breakpoints_v2.xcbkptlist
My User Breakpoints_v2.xcbkptlist
<?xml version="1.0" encoding="UTF-8"?>
<Bucket
type = "2"
version = "2.0">
<Breakpoints>
<BreakpointProxy
BreakpointExtensionID = "Xcode.Breakpoint.ExceptionBreakpoint">
<BreakpointContent
shouldBeEnabled = "Yes"
ignoreCount = "0"
@xieweizhi
xieweizhi / bookCoverOpen.m
Created September 30, 2015 08:40 — forked from albertodebortoli/bookCoverOpen.m
Book cover flip animation on iOS (Path app style)
#import <QuartzCore/QuartzCore.h>
UIImageView *splashView = [[UIImageView alloc] initWithFrame:CGRectMake(0,0, 320, 480)];
splashView.image = [UIImage imageNamed:@"Default.png"];
[self.window addSubview:splashView];
[self.window bringSubviewToFront:splashView];
splashView.layer.anchorPoint=CGPointMake(0, .5);
splashView.center = CGPointMake(splashView.center.x - splashView.bounds.size.width/2.0f, splashView.center.y);
[UIView beginAnimations:nil context:nil];
@xieweizhi
xieweizhi / DeviceUID.m
Last active September 24, 2015 07:17 — forked from miguelcma/DeviceUID.m
iOS Unique Device ID that persists between app reinstalls
/* DeviceUID.h
#import <Foundation/Foundation.h>
@interface DeviceUID : NSObject
+ (NSString *)uid;
@end
*/
// Device.m