I hereby claim:
- I am TimOliver on github.
- I am timoliver (https://keybase.io/timoliver) on keybase.
- I have a public key whose fingerprint is E3FA 5C22 4002 BC25 C8E6 B8B5 96AB B712 3936 A658
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
- (NSComparisonResult)sortedArchiveEntryIndex:(NSString *)firstName againstIndex:(NSString *)secondName | |
{ | |
//if first name is empty, assume ascending | |
if ([firstName length] == 0) | |
return NSOrderedAscending; | |
if ([secondName length] == 0) | |
return NSOrderedDescending; | |
//convert the names to raw bytes so they can be manually compared on a numerical basis |
sudo sysctl -w kern.timer.coalescing_enabled=0 |
void DrawInsetBeveledRoundedRect( CGContextRef context, CGRect rect, CGFloat radius, UIColor *fillColor ) | |
{ | |
//contract the bounds of the rectangle in to account for the stroke | |
CGRect drawRect = CGRectInset(rect, 1.0f, 1.0f); | |
//contract the height by 1 to account for the white bevel at the bottom | |
drawRect.size.height -= 1.0f; | |
//Save the current state so we don't persist anything beyond this operation | |
CGContextSaveGState(context); |
@implementation UIScrollView (ZoomToPoint) | |
- (void)zoomToPoint:(CGPoint)zoomPoint withScale: (CGFloat)scale animated: (BOOL)animated | |
{ | |
//Normalize current content size back to content scale of 1.0f | |
CGSize contentSize; | |
contentSize.width = (self.contentSize.width / self.zoomScale); | |
contentSize.height = (self.contentSize.height / self.zoomScale); | |
//translate the zoom point to relative to the content rect |