摘要:
@property (nonatomic,strong) UIView * submitView; //创建自定义提示框 - (void)viewDidLoad { [super viewDidLoad]; _submitView = [[UIView alloc]initWithFrame:CGR 阅读全文
posted @ 2016-07-22 10:04
代码始我快乐
阅读(312)
评论(0)
推荐(0)
摘要:
-(UITextField*)createField:(NSString*)placeholder andTag:(int)tag andFont:(double)font{ UITextField * field =[[UITextField alloc]init]; field.frame = CGRectMake(0, 0, Main_Width-91, 50... 阅读全文
posted @ 2016-07-21 19:57
代码始我快乐
阅读(308)
评论(0)
推荐(0)
摘要:
//视图控制器声明周期的四个方法 -(void)viewWillAppear:(BOOL)animated { //视图将要显示的时候调用该方法 NSLog(@"viewWillAppear: --- root"); //一般的时候我们会在该方法中对当前视图控制器上的视图内容进行重构(控件的显示位置 已经控件上显示的内容) self.view.background... 阅读全文
posted @ 2016-07-15 11:36
代码始我快乐
阅读(152)
评论(0)
推荐(0)
摘要:
// AppDelegate.h #import @interface AppDelegate : UIResponder //UIResponder是XCode5.0以后出现的新类 //新的iOS 将iOS的响应事件分为3种 //将三种响应事件封装成一个新的类 UIResponder /* touch 触摸事件 remote 远程操控事件 motion 摇晃事件 */ //... 阅读全文
posted @ 2016-07-15 11:31
代码始我快乐
阅读(423)
评论(0)
推荐(0)
摘要:
- (void)viewDidLoad { [super viewDidLoad]; self.navigationItem.title = @"第一页"; self.view.backgroundColor = [UIColor cyanColor]; [self createBtn]; second = [[SecondViewControl... 阅读全文
posted @ 2016-07-15 11:18
代码始我快乐
阅读(382)
评论(0)
推荐(0)
摘要:
- (void)viewDidLoad { [super viewDidLoad]; [self createUI]; xiaoCustom = [[Custom alloc]init]; [xiaoCustom setValue:@"test" forKey:@"name"]; [xiaoCustom setValue:[NSNumber nu... 阅读全文
posted @ 2016-07-15 11:13
代码始我快乐
阅读(140)
评论(0)
推荐(0)
摘要:
// // RootViewController.m #import "RootViewController.h" @interface RootViewController () { NSMutableArray * dataSource; } @end @implementation RootViewController -(void)createUI { NSAr... 阅读全文
posted @ 2016-07-15 10:50
代码始我快乐
阅读(387)
评论(0)
推荐(0)
摘要:
- (BOOL) checkCardNo:(NSString*) cardNo{ int oddsum = 0; //奇数求和 int evensum = 0; //偶数求和 int allsum = 0; int cardNoLength = (int)[cardNo length]; int lastNum = [[cardNo subs... 阅读全文
posted @ 2016-07-13 15:16
代码始我快乐
阅读(370)
评论(0)
推荐(0)
摘要:
#import "ViewController.h" #import "CardIO.h" @interface ViewController ()<CardIOPaymentViewControllerDelegate> @end @implementation ViewController - 阅读全文
posted @ 2016-07-13 11:32
代码始我快乐
阅读(1815)
评论(0)
推荐(0)
摘要:
#import "ViewController.h" #import "KLFaceDetector.h" #define FACEIMGVIEW_TAG 100001 @interface ViewController () @property (nonatomic, strong) UIImag 阅读全文
posted @ 2016-07-13 10:58
代码始我快乐
阅读(1659)
评论(0)
推荐(0)
浙公网安备 33010602011771号