ZHPickView
自定义ActionView中的pickview
Install / Use
/learn @zhaozihui/ZHPickViewREADME
#ZHPickView 可以简单实现在底部弹出类似ActionView画面 实现自定义的pickView 使用起来非常简单,可以自定义标题
实现简单的PickView
ZHPickView *pickView = [[ZHPickView alloc] init];
[pickView setDataViewWithItem:@[@"item1",@"item2",@"item3"] title:@"DataTitle"];
[pickView showPickView:self];
pickView.block = ^(NSString *selectedStr)
{
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"You have chooseed:" message:selectedStr delegate:nil cancelButtonTitle:@"OK" otherButtonTitles:nil, nil];
[alert show];
};
画面效果:
<img src="https://raw.githubusercontent.com/zhaozihui/ZHPickView/master/IMG_1205.PNG" width="320" height="568" alt="画面效果"/>实现简单的DatePickView
ZHPickView *pickView = [[ZHPickView alloc] init];
[pickView setDateViewWithTitle:@"dateTitle"];
[pickView showPickView:self];
pickView.block = ^(NSString *selectedStr)
{
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"You have chooseed:" message:selectedStr delegate:nil cancelButtonTitle:@"OK" otherButtonTitles:nil, nil];
[alert show];
};
画面效果:
<img src="https://raw.githubusercontent.com/zhaozihui/ZHPickView/master/IMG_1206.PNG " width="320" height="568" alt="画面效果"/>#联系作者:zhaozihui@gmail.com
Related Skills
node-connect
342.0kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
84.7kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
342.0kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
commit-push-pr
84.7kCommit, push, and open a PR
