iOS 基础函数解析 - Foundation Functions Reference
iOS 基础函数解析 - Foundation Functions Reference
太阳火神的漂亮人生 (http://blog.csdn.net/opengl_es)
本文遵循“署名-非商业用途-保持一致”创作公用协议
Foundation Functions Reference
| Framework |
Foundation/Foundation.h
|
| Declared in |
NSBundle.h
NSByteOrder.h NSDecimal.h NSException.h NSObjCRuntime.h NSObject.h NSPathUtilities.h NSRange.h NSZone.h |
Overview
This chapter describes the functions and function-like macros defined in the Foundation Framework.
Functions by Task
Assertions
For additional information about Assertions, see Assertions and Logging Programming Guide.
NSAssertNSAssert1NSAssert2NSAssert3NSAssert4NSAssert5NSCAssertNSCAssert1NSCAssert2NSCAssert3NSCAssert4NSCAssert5NSCParameterAssertNSParameterAssert
Bundles
For additional information on generating strings files see “Using Strings Files for User-Facing Text” in Internationalization
Programming Topics.
NSLocalizedStringNSLocalizedStringFromTableNSLocalizedStringFromTableInBundleNSLocalizedStringWithDefaultValue
Byte Ordering
NSConvertHostDoubleToSwappedNSConvertHostFloatToSwappedNSConvertSwappedDoubleToHostNSConvertSwappedFloatToHostNSHostByteOrderNSSwapBigDoubleToHostNSSwapBigFloatToHostNSSwapBigIntToHostNSSwapBigLongLongToHostNSSwapBigLongToHostNSSwapBigShortToHostNSSwapDoubleNSSwapFloatNSSwapHostDoubleToBigNSSwapHostDoubleToLittleNSSwapHostFloatToBigNSSwapHostFloatToLittleNSSwapHostIntToBigNSSwapHostIntToLittleNSSwapHostLongLongToBigNSSwapHostLongLongToLittleNSSwapHostLongToBigNSSwapHostLongToLittleNSSwapHostShortToBigNSSwapHostShortToLittleNSSwapIntNSSwapLittleDoubleToHostNSSwapLittleFloatToHostNSSwapLittleIntToHostNSSwapLittleLongLongToHostNSSwapLittleLongToHostNSSwapLittleShortToHostNSSwapLongNSSwapLongLongNSSwapShort
Decimals
You can also use the class NSDecimalNumber for
decimal arithmetic.
NSDecimalAddNSDecimalCompactNSDecimalCompareNSDecimalCopyNSDecimalDivideNSDecimalIsNotANumberNSDecimalMultiplyNSDecimalMultiplyByPowerOf10NSDecimalNormalizeNSDecimalPowerNSDecimalRoundNSDecimalStringNSDecimalSubtract
Exception Handling
You can find the following macros implemented in NSException.h. They are obsolete and should not be used. See Exception
Programming Topics for information on how to handle exceptions.
Managing Object Allocation and Deallocation
NSAllocateObjectNSCopyObjectNSDeallocateObjectNSDecrementExtraRefCountWasZeroNSExtraRefCountNSIncrementExtraRefCountNSShouldRetainWithZone
Interacting with the Objective-C Runtime
NSGetSizeAndAlignmentNSClassFromStringNSStringFromClassNSSelectorFromStringNSStringFromSelectorNSStringFromProtocolNSProtocolFromString
Logging Output
Managing File Paths
NSFullUserNameNSHomeDirectoryNSHomeDirectoryForUserNSOpenStepRootDirectoryNSSearchPathForDirectoriesInDomainsNSTemporaryDirectoryNSUserName
Managing Ranges
NSEqualRangesNSIntersectionRangeNSLocationInRangeNSMakeRangeNSMaxRangeNSRangeFromStringNSStringFromRangeNSUnionRange
Uncaught Exception Handlers
Whether there’s an uncaught exception handler function, any uncaught exceptions cause the program to terminate, unless the exception is raised during the posting of a notification.
Core Foundation ARC Integration
Managing Memory
NSAllocateMemoryPagesNSCopyMemoryPagesNSDeallocateMemoryPagesNSLogPageSizeNSPageSizeNSRealMemoryAvailableNSRoundDownToMultipleOfPageSizeNSRoundUpToMultipleOfPageSizeNSMakeCollectable
Managing Zones
Zones are ignored on iOS and 64-bit runtime on OS X. You should not use zones in current development.
NSCreateZoneNSRecycleZoneNSSetZoneNameNSZoneCallocNSZoneFreeNSZoneFromPointerNSZoneMallocNSZoneNameNSZoneReallocNSDefaultMallocZone
Copyright © 2014 Apple Inc. All Rights Reserved. Terms of Use | Privacy
Policy | Updated: 2014-04-09
iOS 基础函数解析 - Foundation Functions Reference的更多相关文章
- IOS基础之 (九) Foundation框架
一NSNumber 类型转换 NSNumber 把基本数据类型包装成一个对象类型.NSNumber之所以可以(只能)包装基本数据类型,是因为继承了NSValue. @20 等价于 [NSNumber ...
- 《慕客网:IOS基础入门之Foundation框架初体验》学习笔记 <五> NSDicionary + NSMutableDictionary
int main(int argc, const char * argv[]) { @autoreleasepool { //字典, 存储的内存不是连续的 用key和value进行对应(键值) //k ...
- IOS基础之 (八) Foundation框架
一 常用类 NSRange 范围,NSPoint 点,NSSize /CSSize 大小,CGRect 1 NSRange 1)NSRange是一种C语言结构用来帮助描述一系列的条款,包括一个起点位 ...
- PHP基础知识之————匿名函数(Anonymous functions)
匿名函数(Anonymous functions),也叫闭包函数(closures),允许 临时创建一个没有指定名称的函数.最经常用作回调函数(callback)参数的值.当然,也有其它应用的情况. ...
- iOS - JSON 数据解析
iOS - JSON 数据解析 前言 NS_CLASS_AVAILABLE(10_7, 5_0) @interface NSJSONSerialization : NSObject @availab ...
- APPcrawler基础原理解析及使用
一.背景 一年前,我们一直在用monkey进行Android 的稳定性测试 ,主要目的就是为了测试app 是否会产生Crash,是否会有ANR,页面错误等问题,在monkey测试过程中,实现了脱离Ca ...
- iOS 基础日记-修饰符
今晚随便温习了一下iOS 基础关于修饰符这块的东西,下面简单的来描述一下,其中有的也是在网络学习到的: strong与weak是由ARC新引入的对象变量属性 ARC的解释:ARC引入了新的对象的生命周 ...
- iOS基础问答面试
<简书社区 — Timhbw>iOS基础问答面试题连载(一)-附答案:http://www.jianshu.com/p/1ebf7333808d <简书社区 — Timhbw> ...
- [iOS基础控件 - 5.5] 代理设计模式 (基于”APP列表"练习)
A.概述 在"[iOS基础控件 - 4.4] APP列表 进一步封装,初见MVC模式”上进一步改进,给“下载”按钮加上效果.功能 1.按钮点击后,显示为“已下载”,并且不 ...
随机推荐
- 在RecyclerView列表滚动的时候显示或者隐藏Toolbar
先看一下效果: 本文将讲解如何实现类似于Google+应用中,当列表滚动的时候,ToolBar(以及悬浮操作按钮)的显示与隐藏(向下滚动隐藏,向上滚动显示),这种效果在Material Design ...
- 一种特殊场景下的HASH JOIN的优化为NEST LOOP.
应用场景: 有如下的SQL: select t.*, t1.ownerfrom t, t1where t.id=t1.id; 表t ,t1的数据量比较大,比如200W行.但是两张表能关联的行数却很少, ...
- The directory '/home/stone/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If execu
使用sudo pip install ......的时候出现下面一段黄色的代码: The directory '/home/stone/.cache/pip/http' or its parent d ...
- springboot学习网站及博客
1关于Spring Boot的博客集合https://www.jianshu.com/p/7e2e5e7b32ab 2泥瓦匠BYSocket的Spring Boot系列 https://www.bys ...
- Sublime Text 的使用笔记
Sublime Text 是一个代码编辑器(Sublime Text 2,3是收费软件,但可以无限期试用),也是HTML和散文先进的文本编辑器.Sublime Text是由程序员Jon Skinner ...
- KT_登录_流程图
一.需求 关于系统登录功能,需求如下:1.登录需要输入用户名.密码2.如果连续密码输入错误4次,则自动锁定账号5分钟(也就是说5分钟之内不能再登录) 请根据以上需求,画一个登录操作流程图 二.绘图 版 ...
- Jmeter入门--断言(检查点)
断言是在请求的返回层面增加一层判断机制.因为请求成功,并不代表结果一定正确,因为此需要检查机制提高测试准确性. 1.响应断言 模式匹配规则: 包括:返回结果包括你指定的内容,支持正则匹配 例如: 响应 ...
- [翻译] BAFluidView
BAFluidView https://github.com/antiguab/BAFluidView This view and it's layer create a 2D fluid anima ...
- [翻译] CBStoreHouseRefreshControl
CBStoreHouseRefreshControl What is it? A fully customizable pull-to-refresh control for iOS inspired ...
- 第一个 mac 程序 Create-JSON-Model
第一个 mac 程序 Create-JSON-Model 效果图 数据 {"ID":null,"name":"Doe","firs ...