TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Animate in Xcode without code

51 pointsby jamztangover 11 years ago

6 comments

bsaulover 11 years ago
Never tried that component, but not being able to set a custom font for a text view is such an obvious miss for an OS that claims to be so much text oriented. I can&#x27;t count the number of times i&#x27;ve had to bind a UILabel into my code just to set the font.<p>I know, UIApparence should be the way to set fonts everywhere, but that defeat the purpose of rapid prototyping IB is made for.
评论 #6854553 未加载
评论 #6854036 未加载
评论 #6854518 未加载
评论 #6854020 未加载
评论 #6853987 未加载
MProgrammerover 11 years ago
User defined runtime attributes in IB are great. We use them for font name and other handy things (like CALayer attributes for corner radius, shadows, etc).<p>A word of caution, though. Using key paths in your categories like &quot;fontName&quot; is pretty dangerous. Apple could add such a property, or your users could already have one on their object, that would cause problems. I would suggest including a prefix or suffix, e.g. &quot;cvs_fontName&quot; similar to three-letter-prefixing.<p>I&#x27;ll second the mention about checking the release notes of the latest iOS&#x2F;Xcode beta, for those who have access. Moarfonts seemed promising, but caused nothing but problems when we tried it.
MaxGabrielover 11 years ago
For anyone building the sample project getting _vImage related compiler errors, link Accelerate.framework.<p>I can&#x27;t figure out why that&#x27;s an issue though — URBImageMediaViewController (dependency where the error comes from)&#x27;s sample project doesn&#x27;t link against Accelerate.framework either, but it builds fine.
评论 #6854025 未加载
coldcodeover 11 years ago
Does it work on Landscape iPad? Some of the new iOS7 animation APIs have odd issues on that orientation.
jrnkntlover 11 years ago
Nice work. Keeping animation in the presentation-layer makes sense for 90% of the projects.<p>Any reason for the iOS 7 requirement?
评论 #6854069 未加载
评论 #6854366 未加载
评论 #6854558 未加载
danielrakhover 11 years ago
This looks pretty awesome. Excited to give it a try.