This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| NSManagedObjectContext Queue Crashed | |
| 0 libobjc.A.dylib objc_msgSend + 9 | |
| 1 CoreData _PFObjectIDFastHash64 + 104 | |
| 2 CoreFoundation CFBasicHashFindBucket + 1892 | |
| 3 CoreFoundation CFDictionaryGetValue + 82 | |
| 4 CoreData -[NSPersistentStoreCache incrementRefCountForObjectID:] + 24 | |
| 5 CoreData -[NSSQLCore managedObjectContextDidRegisterObjectsWithIDs:] + 146 | |
| 6 CoreData -[NSPersistentStoreCoordinator(_NSInternalMethods) _informAffectedStoresOfInterestByChildContextInObjectsWithObjectIDs:withSelector:] + 112 | |
| 7 CoreData __95-[NSManagedObjectContext(_NestedContextSupport) managedObjectContextDidRegisterObjectsWithIDs:]_block_invoke_0 + 62 | |
| 8 libdispatch.dylib _dispatch_client_callout + 22 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| RKObjectMapping *mapping = [RKObjectMapping mappingForClass:[self class]]; | |
| [mapping addAttributeMappingsFromDictionary:@{ | |
| @"access_token": @"accessToken", | |
| @"access_token" : @"identifier", | |
| @"refresh_token": @"refreshToken", | |
| @"status.errorCode": @"errorCode", | |
| @"status.message": @"message", | |
| @"username": @"username", | |
| }]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| UIContentSizeCategoryExtraSmall | |
| FontStyle: UICTFontTextStyleBody | |
| Point size 14.000000 | |
| Family Name .AppleSystemUIBody | |
| FontStyle: UICTFontTextStyleHeadline | |
| Point size 14.000000 | |
| Family Name .AppleSystemUIHeadline | |
| Bold | |
| FontStyle: UICTFontTextStyleSubhead | |
| Point size 12.000000 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // in tableVC | |
| - (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath | |
| { | |
| JotoEventTableViewCell *sizingCell = [tableView dequeueReusableCellWithIdentifier:@"JotoEvent"]; | |
| JotoEvent *event = [self.fetchedResultsController objectAtIndexPath:indexPath]; | |
| [sizingCell updateFriendsForEvent:[event.friends allObjects]]; | |
| sizingCell.frame = CGRectMake(0, 0, self.tableView.frame.size.width, sizingCell.frame.size.height); | |
| [sizingCell setNeedsLayout]; | |
| [sizingCell layoutIfNeeded]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| static const CGFloat kLabelNegativePadding = 78; | |
| static const CGFloat kLabelVerticalPadding = 17; | |
| static const CGFloat kMinCellHeight = 61; | |
| static const CGFloat kCellBorderInset = 8; | |
| static UIFont *questionFont; | |
| static UIFont *metaFont; | |
| static UIFont *metaFontBold; | |
| + (void) setupFonts { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "next-cursor": 1383180272378407000, | |
| "previous-cursor": 0, | |
| "records": [ | |
| { | |
| "comment": "@conor #whatmonkey", | |
| "created": "2013-11-01T23:43:54Z", | |
| "id": 620, | |
| "is-active": true, | |
| "question-id": 886, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| - (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath { | |
| if (indexPath.row == 1) { | |
| static JotoTutorialTagsTableViewCell *sizingCell; | |
| if (!sizingCell) { | |
| sizingCell = [tableView dequeueReusableCellWithIdentifier:@"tutorialTagsCell"]; | |
| } | |
| sizingCell.frame = CGRectMake(0, 0, self.tableView.frame.size.width, self.tableView.frame.size.height); | |
| NSString *category = [self.interestArray objectAtIndex:indexPath.section]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // | |
| // TCFeedViewModel.m | |
| // Three Cents | |
| // | |
| // Created by Bob Spryn on 2/17/14. | |
| // Copyright (c) 2014 Three Cents, Inc. All rights reserved. | |
| // | |
| #import "TCFeedViewModel.h" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #define isPhone568 ([[UIDevice currentDevice] userInterfaceIdiom] == UIUserInterfaceIdiomPhone && [UIScreen mainScreen].bounds.size.height == 568) | |
| #define iPhone568ImageNamed(image) (isPhone568 ? [NSString stringWithFormat:@"%@-568h.%@", [image stringByDeletingPathExtension], [image pathExtension]] : image) | |
| #define iPhone568Image(image) ([UIImage imageNamed:iPhone568ImageNamed(image)]) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| +(UIFontDescriptor *)preferredAvenirNextFontDescriptorWithTextStyle:(NSString *)style { | |
| static dispatch_once_t onceToken; | |
| static NSDictionary *fontSizeTable; | |
| dispatch_once(&onceToken, ^{ | |
| fontSizeTable = @{ | |
| UIFontTextStyleHeadline: @{UIContentSizeCategoryExtraExtraExtraLarge: @(23), | |
| UIContentSizeCategoryExtraExtraLarge: @(21), | |
| UIContentSizeCategoryExtraLarge: @(18), | |
| UIContentSizeCategoryLarge: @(16), | |
| UIContentSizeCategoryMedium: @(15), |