Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ios/102.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ios 带有快捷日期的日历视图_Ios_Iphone_Xcode_Swift_Calendar - Fatal编程技术网

Ios 带有快捷日期的日历视图

Ios 带有快捷日期的日历视图,ios,iphone,xcode,swift,calendar,Ios,Iphone,Xcode,Swift,Calendar,我从github Swift Date()下载了该项目。如何在xcode中的视图中导入日历并显示日历? 谢谢大家的回复。我下载了源代码并创建了一个新项目,然后将所有源文件拖到新项目中。我添加了一个函数并进行了测试。成功了 func test() { var d1 = Date(year : 2014, month : 5, day : 15) var d2 = Date(string : "2014-05-15") d1 = d1 + 1 if (d2 >

我从github Swift Date()下载了该项目。如何在xcode中的视图中导入日历并显示日历?
谢谢大家的回复。

我下载了源代码并创建了一个新项目,然后将所有源文件拖到新项目中。我添加了一个函数并进行了测试。成功了

func test() {
    var d1 = Date(year : 2014, month : 5, day : 15)
    var d2 = Date(string : "2014-05-15")
    d1 = d1 + 1
    if (d2 > d1) {
        println("d2 is greater than d1")
    } else {
        println("d2 is smaller than d1")
    }
}

此时,他们不在电脑前,但我一回到家,我就会尝试你的例子是否适合我的情况。无论如何,非常感谢。如果我现在才回答,但没有空闲时间,我会很抱歉。谢谢你的帮助,但我就是不能让它工作,我会尝试一些其他的解决方案。