Xcode8上创建第一个Swift工程步骤:
注意在语言选择swift的选项,然后继续。
然后把项目放到文件目录下,选择继续
展开项目的目录,我们可以看到xcode为我们默认生成的程序文件,注意.swift扩展名的就是。
输入文字然后点击运行或快捷键ctrl+R 执行效果。
自己创建一个App-Prefix.pch拖进来。//
// Prefix header
//
// The contents of this file are implicitly included at the beginning of every source file.
//
#import <Availability.h>
#ifndef __IPHONE_5_0
#warning "This project uses features only available in iOS SDK 5.0 and later."
#endif
#ifdef __OBJC__
#import <UIKit/UIKit.h>
#import <Foundation/Foundation.h>
#endif
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)