iOS My97DatePicker日歷使用詳解
更新時間:2017年06月01日 11:50:12 作者:弦外雨
這篇文章主要為大家詳細介紹了iOS My97DatePicker日歷的使用方法,具有一定的參考價值,感興趣的小伙伴們可以參考一下
一、效果圖
二、工程圖
三、代碼
RootViewController.h
#import <UIKit/UIKit.h> @interface RootViewController : UIViewController @end
RootViewController.m
#import "RootViewController.h" //加入頭文件 #import "My97DatePicker.h" @interface RootViewController () @end @implementation RootViewController - (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil { self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil]; if (self) { // Custom initialization } return self; } - (void)viewDidLoad { [super viewDidLoad]; // Do any additional setup after loading the view. CGRect frame = CGRectMake(131, 155, 122, 29); My97DatePicker* piker = [[My97DatePicker alloc] initWithFrame:frame]; [self.view addSubview:piker]; }
以上就是本文的全部內(nèi)容,希望對大家的學(xué)習(xí)有所幫助,也希望大家多多支持腳本之家。
相關(guān)文章
詳解iOS應(yīng)用開發(fā)中Core Data數(shù)據(jù)存儲的使用
這篇文章主要介紹了iOS應(yīng)用開發(fā)中Core Data數(shù)據(jù)存儲的使用,Core Data可以看作是一個內(nèi)嵌型數(shù)據(jù)庫SQLite的iOS專用版本,需要的朋友可以參考下2016-02-02iOS中的表單按鈕選項UIActionSheet常用方法整理
UIActionSheet經(jīng)常被用來制作各種彈出的選項,這里我們就來看一下iOS中的表單按鈕選項UIActionSheet常用方法整理,需要的朋友可以參考下2016-06-06