![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
objective-c
xyz-open
有时间多看看书,多记记笔记
展开
-
objective-c - 类实例变量的声明
Instance variables can be declared in a class interface or implementation; however, declaring them in the public interface of a class would violate one of the key tenets of OOP—encapsulation. Therefor翻译 2016-04-14 17:44:22 · 690 阅读 · 0 评论 -
访问控制-Access Control
objective-c 访问控制翻译 2016-04-14 18:09:11 · 267 阅读 · 0 评论 -
属性(Property)
PropertiesIn many programming languages, methods that access an object’s internal state—often referred toas getter/setter methods—must be manually coded. Objective-C provides declared properties t翻译 2016-04-15 14:56:54 · 321 阅读 · 0 评论 -
objective-c 的方法(method)
方法(method)方法的声明语法(Syntax)objective-c中的方法由方法类型、方法的返回值类型、和一个或多个方法的分段(segment)组成,其中方法的分段(segment)提供了方法名、参数、参数类型信息。如图所示1、方法类型:指明该方法为类方法还是实例(instance)方法。+ 表示为类方法, -为实例方法。 它们两作用范围不同,原创 2016-04-16 10:22:04 · 395 阅读 · 0 评论 -
协议(protocol)
ProtocolYou have learned about the basic elements and structure of Objective-C classes, but the language provides several additional features for developing classes. In this section, you’ll learn ab翻译 2016-04-16 11:03:16 · 510 阅读 · 0 评论 -
xcode编译静态库时:**** is not an object file (not allowed in a library)
出现此错误:第一步:链接的库是否是存在的且正确的库*.a.第二步:如果还出现错误,那么确定Xcode搜索库路径-Library search paths,是否有错误。如果在工程目录中存在多个相同的但是不同平台的库, 得保证搜索的路径应该是正确的库。解决如上问题,应该就差不多解决了原创 2016-09-10 11:33:45 · 7948 阅读 · 0 评论