Sportica   Sportica

随笔分类 -  objective-c

上一页 1 ··· 5 6 7 8 9
摘要:- (IBAction)reslut_value:(id)sender{ /*分别表示年、月、日、时、分、秒*/ NSInteger unitFlags = NSYearCalendarUnit | NSMonthCalendarUnit | NSDayCalendarUnit | NSWeekCalendarUnit | NSHourCalendarUnit| NSMinuteCalendarUnit | NSSecondCalendarUnit; //******************** NSDate *dat... 阅读全文
posted @ 2012-06-27 16:13 qingjoin 阅读(469) 评论(0) 推荐(0) 编辑
摘要:// test.h 中的头文件#import <UIKit/UIKit.h>@interface test : UIViewController-(void)temp:(int)value1 :(int) value2;@end/******************************/// test.m文件 用来写一个方法#import "test.h"@interface test ()@end@implementation test-(void)temp:(int)value1 :(int) value2{ int temp; if(value1< 阅读全文
posted @ 2012-06-26 15:59 qingjoin 阅读(279) 评论(0) 推荐(0) 编辑

上一页 1 ··· 5 6 7 8 9
  Sportica