Skip to content


Subversion checkout URL

You can clone with
Download ZIP

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
base fork: ettore/candygirl
base: master@{1394051318}
head fork: ettore/candygirl
compare: master
Commits on Mar 07, 2014
@ettore rename map and reduce methods 18ccddc
Commits on Mar 19, 2014
@ettore fix blurriness 2925ebe
Commits on Mar 21, 2014
@ettore size the spinner view using the main view’s bounds (not frame), since…
… the spinner view is a subview of the main view
Commits on Mar 31, 2014
@ettore more blurriness fixes 63a55f1
Commits on Apr 18, 2014
@ettore add trimAfterFirstOccurrence 81d5708
Commits on May 03, 2014
@ettore remove usage of deprecated dispatch_get_current_queue() function d955a81
Commits on May 05, 2014
@ettore move initial option configuration to its own method to facilitate usi…
…ng this class as a singleton
Commits on May 06, 2014
@ettore add clcg_ago_format_minimal for an even shorter “ago” date format.
Also add better docs.
Commits on May 09, 2014
@ettore reverting setX/Y/W/H to previous check-in: CGRectIntegral may cause u…
…nexpected changes in other coordinate or dimension
Commits on Jun 01, 2014
@ettore make sure to UIImage::setImage in main thread 75e62cf
Commits on Jun 02, 2014
@ettore layout utilities for positioning subviews with autosizing 461da9f
Commits on Jun 04, 2014
@ettore change a few params in autosizing layout helpers; add sizing wrappers…
… for attributed strings
Commits on Jul 01, 2014
@ettore distinguish between viewportPadding and innerPadding in CLCGCell 50a7ba5
@ettore use round instead of roundf 41d0a0b
Commits on Jul 02, 2014
@ettore use CLCGImageView instead of regular image view in CLCGCell 9baf34f
@ettore remove unneeded setup for mainImageView 50a86ba
Commits on Jul 03, 2014
@ettore split overly complex putView: method into two methods 3dbe644
@ettore refactor pagination, adding default handling for the “more” row d4d5854
@ettore default the more cell to be clear background color 017e023
Commits on Jul 06, 2014
@ettore more rounding corrections; use_line_limit guard for numberOfLines 01dffb2
@ettore add helper for loading images in cell 4a91868
Commits on Jul 10, 2014
@ettore allow more direct customization of font sizes 60c01a9
@ettore fix misaligned “More…” button text on paginated result sets 854809d
@ettore prevent flickering of images when changing image on the same CLCGImag…
@ettore more pagination refactoring; fix reload for tableviews c09eb33
Commits on Jul 12, 2014
@ettore revert commit c978e7b, since it is the client’s responsibility to cle…
…ar the image contents if they require so
@ettore add simpler height calculation method that leverages styling class me…
@ettore factor out more styling elements into class methods 2bcaed5
Commits on Jul 22, 2014
@ettore suppress extra table separators that would appear when the tableview …
…doesn’t have many rows
@ettore comments 871ec71
@ettore nil-check before adding an item to array in -map: and refactor -mapSe…
…lector: with -map:
Commits on Jul 23, 2014
@ettore expose spinner view 4fcbc14
Commits on Jul 28, 2014
@ettore return default constant rowHeight value for cell height calculation e82122a
Commits on Aug 02, 2014
@ettore move initialization code into private method so it can be reused by a…
…wakeFromNib as well
@ettore add helper function to get generic object from prefs 4e425ec
Commits on Aug 09, 2014
@ettore nil-check on font param for -sizeWithMaxW:maxH:font: 86fb0ea
@ettore add tap to reload in case of error 0a3a4e6
@ettore move instance variables to .m 4abcca2
@ettore perform getter and setter helpers 1c1045e
Commits on Aug 11, 2014
@ettore convert all files to ARC 9328ea2
Commits on Aug 16, 2014
@ettore fix subtle sizing issues and improve text height calculations
Adding NSStringDrawingUsesFontLeading in sizeWithMaxW:maxH: is needed to account for the leading space between lines, and above and below the last line. Without this, the calculated height resulted a couple pixels short.
Commits on Aug 20, 2014
@ettore add ability to show some text in loading view d5e5b23
Commits on Aug 21, 2014
@ettore respect nib settings during initialization (and remove unnecessary me…
…thod calls (defaults already set))
@ettore fix more cell layout and make it compatible with eventual autoload logic d3ec5cb
Commits on Aug 22, 2014
@ettore init textLabel even if text is nil, in case clients need to use it la…
…ter on
Commits on Aug 27, 2014
@ettore use float max for max height, not screen 5ac1898
Commits on Aug 31, 2014
@ettore handle all possible authorization statuses when accessing address book d8bd741
Commits on Sep 01, 2014
@ettore add addTarget:forTapAction: gesture recognizer helper for UIViews 546367c
@ettore initial version of height caching for views 452beb5
Commits on Sep 03, 2014
@ettore remove addTarget:onTapAction: from CLCGImageView to use the equivalen…
…t method in the UIView's category
Commits on Sep 04, 2014
@ettore add transition between spinner view and main vew 665863f
Commits on Sep 05, 2014
@ettore do not add padding if there is no text 74ce4b8
Commits on Sep 12, 2014
@ettore center spinner accordingly to actual presence of text in labels b0f4592
@ettore add popoverContentSizeDidChange: to CLCGPopoverContentDelegate protocol ad18ddc
@ettore much more reliable way to size attributed strings e7be3ef
Commits on Sep 19, 2014
@ettore use boundingRectWithSize to calculate size of attributed string
because CTFramesetterSuggestFrameSizeWithConstraints returned incorrect size (one of the problems: not considering font leading)
Commits on Sep 25, 2014
@ettore build for arm64 arch in Xcode 6 6127c15
Commits on Sep 28, 2014
@ettore status bar height calc fix for iOS 8 70d7004
@ettore make showLoadingView: idempotent b94e0c1
Commits on Oct 07, 2014
@ettore iOS 8 check for deprecatd enabledRemoteNotificationTypes 23b8f0f
@ettore make candygirl usable in an App Extension context 3a81810
@ettore display different error in base VC if a 2nd one happens right after t…
…he 1st
Commits on Oct 10, 2014
@ettore fix handling of push notifications on iOS 8 21718c0
@ettore fix clcg_screensize() on iOS 8+ 17cc13d
Commits on Oct 15, 2014
@ettore clean up previous error/empty states when when (re)loading a97af1b
Commits on Oct 17, 2014
@ettore recognize iphone 6+ as retina! 5c8d229
@ettore helper to obtain a date from year/month/day values 8149d12
Commits on Oct 23, 2014
@ettore add support for retina HD images 906888c
Commits on Nov 11, 2014
@ettore make sure block is on the heap in all cases b5d3d60
@ettore post accessibility notification when showing the spinner f3c42cb
Commits on Dec 23, 2014
@ettore Remove registration of APNs during initial configuration. Modernizati…
…on of source, cleanup.
Commits on Dec 24, 2014
@ettore rename categories to a more standard naming convention, and CLCGTVVC …
…to CLCGTableViewVC. Some clean-up.

In particular, clean-up incorrect license info in a few files.
Commits on Jan 16, 2015
@ettore fix some compilation warnings and add CLCGModel::containsPrefix a851b77
Commits on Feb 11, 2015
@ettore missing imports dbcb426
@ettore add method to detect if user has push notification badges enabled 7ae0eb6
Commits on Feb 19, 2015
@ettore add method to determine if we're dealing with a big (e.g. iphone 6) d…
Commits on Mar 02, 2015
@ettore fix layout bug in CLCGCell and add CLCG_INCONSISTENCY macro ab9ba35
Commits on Mar 11, 2015
@ettore add showErrorMessage method
showErrorMessage will show the Retry label while showEmptyMessage won't.
Commits on Apr 22, 2015
@ettore remove unneeded NSLog 7202856
Commits on Apr 28, 2015
@ettore set CLCGImageView defaults: opaque to YES and clearsContextBeforeDraw…
…ing to NO
Commits on Jun 08, 2015
@ettore Fix deprecations and add project with reasonably strict build settings
add .gitignore and fix deprecations when building against iOS 5+ deployment target
Commits on Jun 09, 2015
@ettore add Cocoapod integration for project; minor compilation fixes; now of…
…ficially supporting iOS 6+ only.
Commits on Jun 12, 2015
@ettore add function to return the actual device name e.g. to distinguish bet…
…ween iPhone 5, 6, 6+, etc
Commits on Jul 08, 2015
@ettore allow to specify paragraph style in string sizing methods. 4516be0
Commits on Jul 18, 2015
@ettore execute image loading callback on main thread 99ea12f
Commits on Jul 19, 2015
@ettore update README 58d3efa
Commits on Jul 21, 2015
@ettore factor out sizing method from CLCGCell and add deprecation notices on…
… some old classes