ideawu / cocoaui Goto Github PK
View Code? Open in Web Editor NEWBuild adaptive UI for iOS Apps with flow-layout and CSS properties
Home Page: http://www.cocoaui.com/
License: BSD 3-Clause "New" or "Revised" License
Build adaptive UI for iOS Apps with flow-layout and CSS properties
Home Page: http://www.cocoaui.com/
License: BSD 3-Clause "New" or "Revised" License
Use HTML table to define a ITable in XML file.
要使用base64编码的图片,目前<img src="data:image/png;base64,XXXXX"/>
这样可以用,但是我直接用IImage就不行了,能不能给IImage的src属性也增加DataURI的判断?
接用户反馈。
实际动效如下:控件先向下滑动到底,然后再向上滑,然后消失。
期望动效应该是:控件向上滑动,然后消失。
请问cocoaui与weex是什么关系?二者的思路好像挺类似。
<select>
<option value="1">option 1</option>
<option value="2">option 2</option>
<option value="3">option 3</option>
<option value="4">option 4</option>
</select>
ISelect *sel = (ISelect *)[view getViewById:@"select1"];
[sel onSelectKey:^(NSString *key) {
log_debug(@"select %@", key);
}];
select{
}
select .label{
}
select .arrow{
}
接用户反馈:这个问题只在swift里,oc里正常
How add cocoaui to cocoapod ?
Please give me some advice.
各位:
CocoaUI 已经更新到 1.2.0 版本, 该版本增加新功能:
示例:
<div style="margin: 15;">
<style href="login.css" />
</div>
具体请参考示例项目的源码: https://github.com/ideawu/cocoaui-demos
Rules:
A E
A > E
A, B, C
问题:
UITabBarController , UINavigationController, ITable,三者混用时,特别在二级UINavigationController POP时后,ITable中的Row会出现下移问题。
解决办法:
1、在ITable.m 中viewDidLoad中增加 self.automaticallyAdjustsScrollViewInsets = NO; //禁止自动调整。
2、在init 在ITable.m 中init中增加:
scrollFrame = CGRectMake(0, NAV_HEIGHT, [UIScreen mainScreen].bounds.size.width, [UIScreen mainScreen].bounds.size.height-64-50);
在ITable.m 中layoutViews中自定义修改高度:
CGSize fsize = CGSizeMake(scrollFrame.size.width,
scrollFrame.size.height );
if(!CGSizeEqualToSize(_scrollView.frame.size, fsize)){
log_debug(@"change size, w: %.1f=>%.1f, h: %.1f=>%.1f", _scrollView.frame.size.width, scrollFrame.size.width, _scrollView.frame.size.height, scrollFrame.size.height);
CGRect frame = _scrollView.frame;
frame.size = fsize;
NSLog(@"%s,%d,%f",__func__,__LINE__,self.view.frame.size.height);
_scrollView.frame = frame;
_contentFrame.size.width = self.view.frame.size.width;
}
hi sir.
can this library support z-index attribute on next version?
it will make it more easy to do some lively works
How add cocoaui to cocoapod ?
Please give me some advice.
Thanks to more compatible with CSS specification
demo中有一个自动行高的列子,但其中的cell是通过代码创建的。
我在xml文件中定义一个cell,然后添加到ITable中,然后修改cell中某个Label的文本,发现不支持可变的行高,是我的用法不对么?
你好,我在试用的时候发现一个问题。
我在ITable子类中用到了UIScrollViewDelegate,实现了- (void)scrollViewDidScroll:(UIScrollView *)scrollView方法,然后页面就出问题了,我想问题应该是覆盖了ITable中的方法,像这个问题应该怎么处理呢?
谢谢!
CocoaUI will handle screen rotation automatically.
CocoaUI 现在会自动处理屏幕翻转, 并刷新界面了.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.