TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Pegasus for Cocoa Touch - Framework to build UIKit view hierarchies in XML

7 点作者 saniul超过 13 年前

6 条评论

RandallBrown超过 13 年前
It seems like a neat project, but I don't really hate Interface Builder that much.<p>Getting rid of all the glue code is a <i>really</i> nice part of interface builder and this makes it so every UI element I want to use requires at least a couple lines of code.<p>I also don't like the idea of randomly tweaking numbers and rebuilding to see my whole interface.
jon4than超过 13 年前
Just to add: I'm seeing a lot of click-thrus from Ycombinator onto my site.<p>This is fantastic and I'm glad people are checking it out. I'm also looking to gather requests and feedback for how it can be improved further.<p>Right now it's little more than a proof-of-concept with a handful of adapters for the most basic UIKit classes (UILabel, UITextField, etc. but support for UITableView, UIPickerView, etc. is still in the works).<p>If anyone has any feedback, suggestions and/or criticisms please do leave a comment on the site or post here and I will look into it.
jon4than超过 13 年前
Developer of Pegasus here:<p>I hear what you say. The idea is not to necessary replace IB, but to provide an alternative.<p>Next step is to include layout managers (similar to Android/Swing) which will automatically lay out views based on some pre-defined templates (e.g. i*j grid, horizontal, vertical, etc.) which will remove the need for randomly tweaking numbers as you say ;-)<p>(Said so, this is how a lot of developers tend to work already...)
评论 #3598253 未加载
headhuntermdk超过 13 年前
I'll bite.. why describe your UI in XML when interface builder does it for you? How does pegasus deal with localizing your UI in different languages? This seems a bit like reinventing the wheel for very little benefit.<p>Who is the target developer? A new developer to the platform or an experienced one?
评论 #3598620 未加载
hakeraj超过 13 年前
Interesting. Have you thought about using JSON to describe views (like in QML)?
评论 #3598179 未加载
huytoan_pc超过 13 年前
How stable is Pegasus now? Is anyone using it for realworld applications yet?