欧美一级特黄大片做受成人-亚洲成人一区二区电影-激情熟女一区二区三区-日韩专区欧美专区国产专区

iOS自定義選擇框代碼分享

本文實(shí)例為大家分享了iOS自定義選擇框的具體代碼,供大家參考,具體內(nèi)容如下

成都創(chuàng)新互聯(lián)是專業(yè)的屏邊網(wǎng)站建設(shè)公司,屏邊接單;提供網(wǎng)站設(shè)計(jì)制作、網(wǎng)站建設(shè),網(wǎng)頁設(shè)計(jì),網(wǎng)站設(shè)計(jì),建網(wǎng)站,PHP網(wǎng)站建設(shè)等專業(yè)做網(wǎng)站服務(wù);采用PHP框架,可快速的進(jìn)行屏邊網(wǎng)站開發(fā)網(wǎng)頁制作和功能擴(kuò)展;專業(yè)做搜索引擎喜愛的網(wǎng)站,專業(yè)的做網(wǎng)站團(tuán)隊(duì),希望更多企業(yè)前來合作!

效果圖:

iOS自定義選擇框代碼分享

工程圖:

iOS自定義選擇框代碼分享

代碼:

RootViewController.h

#import <UIKit/UIKit.h>
#import "CYCustomMultiSelectPickerView.h"

 
@interface RootViewController : UIViewController
<CYCustomMultiSelectPickerViewDelegate>
{
 CYCustomMultiSelectPickerView *multiPickerView;
 UILabel *pickLabel;
}

@end

RootViewController.m

#import "RootViewController.h"

@interface RootViewController ()

@end

@implementation RootViewController

- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
 self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
 if (self) {
  // Custom initialization
 }
 return self;
}

- (void)viewDidLoad
{
 [super viewDidLoad];
 // Do any additional setup after loading the view.
 
 
 self.title=@"ALPickerView";
 
 pickLabel=[[UILabel alloc]initWithFrame:CGRectMake(10, 100, 100, 50)];
 pickLabel.backgroundColor=[UIColor orangeColor];
 pickLabel.textAlignment=NSTextAlignmentCenter;
 [self.view addSubview:pickLabel];
}
//隨意點(diǎn)擊任意處,彈出選擇框
-(void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event
{
 [self initPickerView];
}
-(void)initPickerView
{
 for (UIView *view in self.view.subviews) {
  if ([view isKindOfClass:[CYCustomMultiSelectPickerView class]]) {
   [view removeFromSuperview];
  }
 }
 
 multiPickerView = [[CYCustomMultiSelectPickerView alloc] initWithFrame:CGRectMake(0,[UIScreen mainScreen].bounds.size.height - 260-20, 320, 260+44)];
 multiPickerView.backgroundColor = [UIColor clearColor];
 multiPickerView.entriesArray = [NSMutableArray arrayWithObjects:@"one",@"two",@"three",@"four",@"five",@"six",@"seven", nil];
 multiPickerView.entriesSelectedArray = [NSMutableArray arrayWithObject:@"one"];
 multiPickerView.multiPickerDelegate = self;
 
 [self.view addSubview:multiPickerView];
 [multiPickerView pickerShow];

}
#pragma -mark -picker delegate
//點(diǎn)擊確定要執(zhí)行的操作
-(void)returnChoosedPickerString:(NSMutableArray *)selectedEntriesArr
{
 NSLog(@"returnChoosedPickerString");
 
 NSMutableArray* newArray = [NSMutableArray array];
 
 for (NSString* str in selectedEntriesArr) {
  
  [newArray addObject:str];
 }
 NSString *endStr = [newArray componentsJoinedByString:@","];
 
 pickLabel.text=endStr;
 
}

- (void)didReceiveMemoryWarning
{
 [super didReceiveMemoryWarning];
 // Dispose of any resources that can be recreated.
}


@end

以上就是本文的全部?jī)?nèi)容,希望對(duì)大家的學(xué)習(xí)有所幫助,也希望大家多多支持創(chuàng)新互聯(lián)。

網(wǎng)頁題目:iOS自定義選擇框代碼分享
文章網(wǎng)址:http://aaarwkj.com/article18/ijhegp.html

成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供商城網(wǎng)站、網(wǎng)頁設(shè)計(jì)公司、網(wǎng)站建設(shè)小程序開發(fā)、營(yíng)銷型網(wǎng)站建設(shè)網(wǎng)站營(yíng)銷

廣告

聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請(qǐng)盡快告知,我們將會(huì)在第一時(shí)間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如需處理請(qǐng)聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時(shí)需注明來源: 創(chuàng)新互聯(lián)

成都seo排名網(wǎng)站優(yōu)化
日韩av在线观看大全| 国产精品国产三级国av中文 | 日本三本道成人免费毛片| 自拍偷拍欧美日韩第一页| 97成品视频在线播放| 中文字幕日韩精品亚洲精品| 日韩欧美国产精品加勒比| 日韩不卡一区二区三区| 国产亚洲精品福利视频| 亚洲国模av一区二区三区| 欧美日本午夜福利在线观看| 成人在线免费观看视频国产| 欧美视频综合一级91| 中日中文av一区二区三区| 巴西老熟女大奶子多毛逼| 国产成人综合精品久久| 日韩欧美亚洲福利在线| 亚洲综合日韩精品国产av| 日韩欧美中文字幕一区二区| 中文岳妇荡欲丰满肥熟| av福利一区二区三区| 国语对白视频在线观看| 外国男人搞亚洲女人在线| 日本性电影一区二区| 国产精品极品网站91青青| 偷拍视频在线一区二区| 日韩欧美日日夜夜精品| 91精品国产综合久久男男| 日本韩国亚洲三级在线| 四虎最新永久在线网站| 久久精品国产亚洲av品| 国产不卡高清视频在线| 欧美精品一区二区网站| 日本高清加勒比免费在线| 精品蜜臀国产av一区二区| 蜜臀人妻四季av一区二区不卡| 国产夫妻性生活视频播放| 色呦呦中文字幕在线播放| 精品在欧美一区二区少妇| 99久久久国产精品蜜臀| 欧美日韩国产特级性生活|