-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
34 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,32 @@ | ||
# DCPickerRecord | ||
Quick recoder for UIPickerView | ||
|
||
##简介 | ||
DCPickerRecord 是用来简化UIPickerView 管理以及使用的组件。 | ||
|
||
以往使用Picker 需要实现UIPicker 的代理, | ||
|
||
|
||
```objective-c | ||
- (NSString *)pickerView:(UIPickerView *)pickerView titleForRow:(NSInteger)row forComponent:(NSInteger)component { | ||
NSString *ret = @""; | ||
// ret = 你某一行显示的内容 | ||
return ret; | ||
} | ||
|
||
-(void)pickerView:(UIPickerView *)pickerView didSelectRow:(NSInteger)row inComponent:(NSInteger)component { | ||
//选择某一行后的行动 | ||
} | ||
|
||
- (NSInteger)numberOfComponentsInPickerView:(UIPickerView *)pickerView { | ||
NSInteger ret = 0; | ||
return ret; | ||
} | ||
|
||
-(NSInteger)pickerView:(UIPickerView *)pickerView numberOfRowsInComponent:(NSInteger)component { | ||
NSInteger ret = 0; | ||
return ret; | ||
} | ||
``` | ||
|
||
Picker 的选择记录记录比较混乱。 |