UI类 - UITextView UIAlertView Demo
(2013-04-18 11:20:36)
标签:
it |
分类: Mac/IOS那些事 |
十二 |--UITextView UIAlertView
--ViewController.h
#import
@interface ViewController : UIViewController <</span>UITextFieldDelegate,UIAlertViewDelegate]]>
//需要包含这两个代理协议
@property (retain, nonatomic) IBOutletUITextField *textTest;
@property (retain, nonatomic) IBOutletUILabel *lableTest;
@property (retain, nonatomic) IBOutletUIButton *buttonTest;
@property
(retain,nonatomic)
IBOutlet
- (IBAction)onClick:(id)sender;
@end
--ViewController.m
#import "ViewController.h"
@interfaceViewController ()
@end
@implementation ViewController
@synthesize lableTest=_lableTest;
@synthesize buttonTest=_buttonTest;
@synthesize textTest=_textTest;
@synthesize alertTest=_alertTest;
-(BOOL)textFieldShouldReturn:(UITextField *)textField
{
}
- (void)viewDidLoad
{
// Do any additional setup after loading the view, typically from a nib.
}
- (void)didReceiveMemoryWarning
{
}
- (void)dealloc {
}
- (void) alertView:(UIAlertView *)alertView clickedButtonAtIndex:(NSInteger)buttonIndex{
}
- (IBAction)onClick:(id)sender {
}
@end