Using Swift with Cocoa and Objetive-C

// Using Swift with Cocoa and Objetive-C


/*

import处理会做如下三件事情:

1.OC的类型转换为swift的类型,比如id to AnyObject


2.OC库中类型转换为Swift类型,

NSString to String

NSNumber to IntFloat

NSArray  to Array

NSDictionary to Dictionary


3.OC中的概念转换为Swift概念,比如Pointer to Optional

*/

你可能感兴趣的:(Using Swift with Cocoa and Objetive-C)