Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[announce] CocoaUI now supports screen rotation #30

Open
ideawu opened this issue Nov 19, 2015 · 11 comments
Open

[announce] CocoaUI now supports screen rotation #30

ideawu opened this issue Nov 19, 2015 · 11 comments

Comments

@ideawu
Copy link
Owner

ideawu commented Nov 19, 2015

CocoaUI will handle screen rotation automatically.

CocoaUI 现在会自动处理屏幕翻转, 并刷新界面了.

@hepking
Copy link

hepking commented Nov 29, 2015

好好!支持input的file控件吗?

@ideawu
Copy link
Owner Author

ideawu commented Nov 30, 2015

不支持. 因为iOS上面用file控件的场景非常罕见.

@hepking
Copy link

hepking commented Dec 1, 2015

兄弟,上传图片还罕见?修改头像啊,不都需要嘛。
能否支持绝对定位呢?能否支持zindex呢?
希望框架余越来越强大!

@hepking
Copy link

hepking commented Dec 1, 2015

能支持一下安卓的吗?这样一套ui适合双端了。兄弟你的QQ或微信是多少?

@ideawu
Copy link
Owner Author

ideawu commented Dec 1, 2015

@hepking 支持 position: absolute 倒是可以, zindex 我需要考虑一下(非常可能不做). 不过, 安卓我没时间, 而且我非常不熟悉安卓.

上传图片的话, 你给按钮加一个事件, 自己来处理吧. 框架可以做这个, 不过我看做这个功能点效果不大.

@ideawu
Copy link
Owner Author

ideawu commented Dec 1, 2015

我看了下css相关的资料,

absolute :  将对象从文档流中拖出,使用left,right,top,bottom等属性进行绝对定位。

我考虑了下, 如果要把 UIView 从 DOM 树中抽离出来, 技术难度比较大, 我暂时还没有想到好方法. 目前, 你可以通过 margin-top: -10 这样的属性来做一些叠加的布局, 例子可以参考: https://github.com/ideawu/cocoaui-demos/blob/master/CocoaUIDemo/buy.xml

@hepking
Copy link

hepking commented Dec 1, 2015

今天,跟一个做安卓的谈起你这个框架,其实说起原理来很简单,他说可以研究一下

@ideawu
Copy link
Owner Author

ideawu commented Dec 1, 2015

@hepking 赞! 如果他有意愿, 可以把 cocoaui 移植到安卓.

@hepking
Copy link

hepking commented Dec 1, 2015

https://github.com/NightWhistler/HtmlSpanner 这里有个安卓的html渲染库

@hepking
Copy link

hepking commented Dec 8, 2015

应该加上px,这个px可以当没有,这样也方便用html来预览和调整效果。比提供个ui预览app要好吧

@ideawu
Copy link
Owner Author

ideawu commented Dec 8, 2015

你可以加, 但框架没必要强制. 见文档:

长度单位 px 可以被省略.

http://www.cocoaui.com/docs/property

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants