随笔分类 - objective-c
摘要:- (IBAction)reslut_value:(id)sender{ /*分别表示年、月、日、时、分、秒*/ NSInteger unitFlags = NSYearCalendarUnit | NSMonthCalendarUnit | NSDayCalendarUnit | NSWeekCalendarUnit | NSHourCalendarUnit| NSMinuteCalendarUnit | NSSecondCalendarUnit; //******************** NSDate *dat...
阅读全文
摘要:// 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<
阅读全文