10월, 2014의 게시물 표시

카테고리 선택뷰 + 2단 피커뷰 랜덤 섞기 소스

// MainViewController.h // IdeaSon // // Created by SimpleVisual on 11. 10. 5.. // Copyright 2011 __MyCompanyName__. All rights reserved. // #define kTech1Compo 0 // 회전판 타입지정 #define kTech2Compo 1 #import "FlipsideViewController.h" @interface MainViewController : UIViewController <FlipsideViewControllerDelegate, UIPickerViewDelegate, UIPickerViewDataSource> { IBOutlet UIPickerView *picker1; NSArray *pick1Type; NSArray *pick2Type; } @property(nonatomic, retain)UIPickerView *picker1; @property(nonatomic, retain)NSArray *pick1Type; @property(nonatomic, retain)NSArray *pick2Type; - (IBAction)showInfo:(id)sender; - (IBAction)buttonPress; // Other Mix @end ------------------------- // MainViewController.m // IdeaSon // // Created by SimpleVisual on 11. 10. 5.. // Copyright 2011 __MyCompanyName__. All rights reserved. // #import "MainViewController.h" #import "IdeaSonAppDelegate.h" // 변수 공유용 @implementation MainViewController @synthe

3단 피커뷰 소스

/ h ----------------------------------------- #import!  <UIKit/UIKit.h> #define groupComponent  0 #define memberComponent  1 #define countComponent  2 @interface  picker3ViewController : UIViewController  <UIPickerViewDelegate, UIPickerViewDataSource>  { UIPickerView  * giveMePicker ;          NSDictionary  * giveMeList ;           NSArray  * groupName ;          NSArray  * memberName ; NSArray  * countType ; } @property  ( nonatomic ,  retain )  IBOutlet  UIPickerView *giveMePicker; @property  ( nonatomic ,  retain ) NSDictionary *giveMeList; @property  ( nonatomic ,  retain ) NSArray *groupName; @property  ( nonatomic ,  retain ) NSArray *memberName; @property  ( nonatomic ,  retain ) NSArray *countType; - ( IBAction )buttonPressed:( id )sender; @end // m-------------------------------- #import!  "picker3ViewController.h" @implementation  picker3ViewController @synthesize  giveMePicker, giveM