Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

More interface-builder friendly. Added nib-based demo. #20

Merged
merged 1 commit into from

2 participants

@tyrone-sudeium

In a similar vein to TTTAttributedLabel and FXLabel, I've made some adjustments to this class to make it more friendly to power-users of Interface Builder. It changes quite a lot about the internal workings of the class (most notably, the superclass is now UILabel instead of UIView, so you can set all the UILabel properties in IB) so there may be significant unintended side-effects. It's hard to tell where the regressions are without unit tests, but from what I can tell, the demo project at least still behaves correctly.

I've created a second target in the demo project which replicates the original one except it has a barebones viewDidLoad: method and all labels and their properties are set in IB. It makes extensive use of User Defined Runtime Attributes.

@cbpowell
Owner

Thanks - I don't use IB much, so I haven't had a chance to try this out yet. But it might work well with another approach I'm tinkering with.

@cbpowell cbpowell merged commit 592c58d into from
@cbpowell
Owner

Finally got around to merging this in! Had to make some tweaks to make sure everything worked with the changes since you submitted this pull request though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.