思路和创建输入框输出框是相同的,直接上代码。
首先在.h中创建一个UIButton类的对象
//
// LYXViewController.h
// helloWord
//
// Created by liyongxing on 13-7-2.
// Copyright (c) 2013年 liyongxing. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface LYXViewController :UIViewController
@property (nonatomic ,strong)UIButton * button;
@end
//在.m中实现一系列的属性
//
// LYXViewController.h
// helloWord
//
// Created by liyongxing on 13-7-2.
// Copyright (c) 2013年 liyongxing. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface LYXViewController :UIViewController
@property (nonatomic ,strong)UIButton * button;
@end