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

CocoaUI now supports <select> widget. #45

Open
ideawu opened this issue May 9, 2016 · 2 comments
Open

CocoaUI now supports <select> widget. #45

ideawu opened this issue May 9, 2016 · 2 comments

Comments

@ideawu
Copy link
Owner

ideawu commented May 9, 2016

XML

<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>

Objective-C:

ISelect *sel = (ISelect *)[view getViewById:@"select1"];
[sel onSelectKey:^(NSString *key) {
    log_debug(@"select %@", key);
}];

Custom the style by CSS:

select{
}
select .label{
}
select .arrow{
}

Screenshot

1
2

@lihongcoding
Copy link

这个框架真心方便,之前大部分时间都花在调整UI布局上了,整个过程枯燥无聊!
现在用这个框架后,效率提升太多,有更多的时间去写业务逻辑!
非常感谢!!!

@ideawu
Copy link
Owner Author

ideawu commented Jul 15, 2016

@MrLiHong 很高兴这个框架能对你有帮助! 如果你的app是公开的, 欢迎分享, 我也使用一下.

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