在XCode最新版本6.1中如何创建类别

在XCode最新版本6.1中如何创建类别,第1张

你好,很高兴为你解答

创建一个objective-c file , 可以选择 category, extension ,protocol, empty 文件。

选category 就能建立类别

自己创建一个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


欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/bake/11404238.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2023-05-15
下一篇 2023-05-15

发表评论

登录后才能评论

评论列表(0条)

保存