Objective-C初探【1】之Programming in Objective-C 6th Edition

对于Objective-C的入门,强烈建议至少通读两遍Programming in Objective-C。

作为程序员,尽管英语水平不高,但是还是要多读读英文原版的书籍。

 

下面就让我这个小菜鸟,和大家一起步入IOS的大海洋,ORG····

首先先了解下Programming in Objective-C 6th Edition这本书的目录框架,这样能使我们更加好的了解到自己需要掌握哪些基础知识。

--Table of Content

--Introduction

--Ⅰ The Objective-C Language            介绍下Object-C的语法

--Ⅱ The Foundation Framework       IOS的基础框架

--Ⅲ Cocoa,Cocoa Touch,and the iOS SDK    

 介绍IOS的API(cocoa包含Foundation和AppKit框架,可用于开发Mac OS X系统的应用程序cocoa touch包含Foundation和UIKit框架,可用于开发iPhone OS系统的应用程序)

--Appendies

--Index

 

 

 

Ⅰ The Objective-C Language 介绍下Object-C的语法

就程序学习而言,咱们一般都从hello world,开始着手。当然这个也是不能例外的。

// First program example
#import <Foundation/Foundation.h>
int main (int argc, const char * argv[])
{
  @autoreleasepool {
  NSLog (@"Hello World!");
}
return 0;
}

简单说明这串代码:

#import <Foundation/Foundation.h>主要引入了系统的Foundation.h文件,以提供给下面的代码使用。

int main (int argc, const char * argv[])是作为程序的主函数,类同于java的main函数,当程序执行时,首先会进入到这个方法当中。

@autoreleasepool  包含的是IOS系统的一种管理内存的机制,并且会自动释放。

@"Hello World!"  当IOS中字符以@""形式出现时,代表正在使用NSString,而单独使用""却是代表C语言中的常量。

 

 

以上解析属于个人见解,如有失误,请提出,使共同进步,谢谢。

转载于:https://www.cnblogs.com/treekang/p/4893884.html

Programming in Objective-C 6th Edition Programming in Objective-C 第六版,现在对应中文版是第4版,唉,还是看英文版靠谱 立即下载

相关推荐

Programming in Objective-C2.0 中文版

中文版,无需多说啦,赶紧下载看吧,app的初级学习者

Programming in Object C 4th-阅读笔记

  Programming in Object C 4th-阅读笔记   由 王宇 原创并发布:   Programming in Object C 4th  1. Introduction   2. Programming in Objective-C   Compiling and Running Programs   Table 2.1 Common Fi...

MrWangyu的专栏 960

高清彩版 Programming in Objective-C(6th)

Programming in Objective-C(6th)

《Programming in Objective-C 3rd Edition》阅读笔记(1)

第2章、Programming in Objective-C // main.m// prog1//// Created by Steve Kochan on 1/30/11.// Copyright 2011 ClassroomM, Inc.. All rights reserved.//#import <Foundation/Foundation.h>int main ...

weixin_30650859的博客 131

Programming in Objective-C, 6th Edition

Book Description Updated for OS X 10.9 Mavericks, iOS 7, and Xcode 5 Programming in Objective-C is a concise, carefully written tutorial on the basics of Objective-C and object-oriented programming for Apple’s iOS and OS X platforms. The book makes no assumptions about prior experience with object-oriented programming languages or with the C language (which Objective-C is based upon). Because of this, both beginners and experienced programmers alike can use this book to quickly and effectively learn the fundamentals of Objective-C. Readers can also learn the concepts of object-oriented programming without having to first learn all of the intricacies of the underlying C programming language. This unique approach to learning, combined with many small program examples and exercises at the end of each chapter, makes Programming in Objective-C ideally suited for either classroom use or self-study. This edition has been fully updated to incorporate new Objective-C features and technologies introduced with Xcode 5, iOS 7, and Mac OS X Mavericks. “The best book on any programming language that I’ve ever read. If you want to learn Objective-C, buy it.”–Calvin Wolcott “An excellent resource for a new programmer who wants to learn Objective-C as their first programming language–a woefully underserved market.”–Pat Hughes Table of Contents Chapter 1. Introduction Part I: The Objective-C Language Chapter 2. Programming in Objective-C Chapter 3. Classes, Objects, and Methods Chapter 4. Data Types and Expressions Chapter 5. Program Looping Chapter 6. Making Decisions Chapter 7. More on Classes Chapter 8. Inheritance Chapter 9. Polymorphism, Dynamic Typing, and Dynamic Binding Chapter 10. More on Variables and Data Types Chapter 11. Categories and Protocols Chapter 12. The Preprocessor Chapter 13. Underlying C Language Features Part II: The Foundation Framework Chapter 14. Introduction to the Foundation Framework Chapter 15. Numbers, Strings, and Collections Chapter 16. Working with Files Chapter 17. Memory Management and Automatic Reference Counting (ARC) Chapter 18. Copying Objects Chapter 19. Archiving Part III: Cocoa, Cocoa Touch, and the iOS SDK Chapter 20. Introduction to Cocoa and Cocoa Touch Chapter 21. Writing iOS Applications Appendixes Appendix A. Glossary Appendix B. Address Book Program Source Code Book Details Paperback: 576 pages Publisher: Addison-Wesley Professional; 6th Edition (December 2013) Language: English ISBN-10: 0321967607 ISBN-13: 978-0321967602

Programming in Objective-C - 6th Edition

Programming in Objective-C - 6th Edition

Programming in Objective-C 学习笔记04——变量和数据类型

Chapter 10 More on Variables and Data Types主要内容: variable scope initialization methods for objects data types in more detail ——enum枚举 初始化 initialization methods:初始化+赋初值 override init方法的“模板”syntax :

u013275181的博客 347

ProgrammingInObjectiveC6thEdition.pdf 英文原版

Programming In Objective C 6th Edition

Programming in Objective-C 学习笔记07——Foundation框架基础01

PART II —— Foundation FrameworkChapter 14-15Introduction a framework is a collection of classes, methods, functions and documentation logically grouped together to make developing programs easier.

u013275181的博客 454

ProgramminginObjective-C4thEdition

ProgramminginObjective-C4thEdition.zip,欢迎下栽,11111

使用FreeNAS软件部署ISCSI的SAN架构存储(IP-SAN)练习题

进入系统后先 ping 10.1.1.88 通不通,ping通就往下做,不通就把winserver 2019的网卡改为自动获取的在ping。注意:如果点击 Initiators 添加显示的跟我不一样,在左上有允许所有的启动器的就打勾(跟我一样就略)注意我当前用的系统是centos7,因为每个系统位置都不同,修改的行号可能有偏差。两个适配器指定不同的网卡,第一张指定为:VMnet5,第二张指定为:VMnet6。由于系统已经自带了一张,我们只要添加的一张网卡就可以。进入web界面后,使用root用户进行登录。

hack_18520的博客 1697

《Programming with Objective-C》第五章 Customizing Existing Classes

1.分类里面只新增函数,不要新增变量;虽然新增是语法合法的,但是编译器并不会为你的property合成相应的成员变量、setter和getter Categories can be used to declare either instance methods or class methods but are not usually suitable for declaring additi...

weixin_30741653的博客 158

解决SolidWorks启动报错问题:SolidWorks2020显示无法获得下列许可 SolidWorks standard 期望的SolidWorks监控程序已经关闭(-97,121,0)

解决SolidWorks启动报错问题:SolidWorks2020显示无法获得下列许可 SolidWorks standard 期望的SolidWorks监控程序已经关闭(-97,121,0) 问题描述 打开SolidWorks2020时,显示SolidWorks2020显示无法获得下列许可 SolidWorks standard 期望的SolidWorks监控程序已经关闭(-97,121,0) (急需看模型的我心里万马奔腾…) 截图如下: 有问题咱就上 看了其他博主的回答,自己尝试了几个,发现出现了新的

qq_44606358的博客 7万+

Programming in Objective-C 学习笔记01

PART I —— The Objective-C Language(ch.2-4) 在Obj-C中,一个class包含两部分: @interface:继承关系,{实例变量},方法声明 @implementation:@interface中声明的方法的实现代码 命名: 基础规则: 选择范围:下划线,字母,数字0-9 不能以数字开头 不能选择关键字 Obj-C大小写敏感 好的原则: clas

u013275181的博客 362

Android P HAL层添加HIDL实例(详细实现步骤)

Android P HAL层添加HIDL实例 本文将介绍如何在P OS上添加HIDL实例,简单增加seLinux策略使得可以在system_service调用测试,并用模拟器emulator验证。 调用过程为 APP->TestManager->TestService->ITast.hal 文章目录Android P HAL层添加HIDL实例实现过程一 、hardware部分1...

sinat_18179367的博客 1万+

避坑指南:RK3588视频编码与SRT推流实战中,我遇到的5个典型问题及解决方案

本文深度解析RK3588平台视频编码与SRT推流实战中的五个典型问题,包括MIPI摄像头内存对齐、多线程数据传递、FFmpeg时间戳设置、SRT连接参数调优及系统资源监控。提供具体解决方案和优化技巧,帮助开发者高效实现实时视频网络传输。

weixin_28718793的博客 325

Programming in Objective-C 学习笔记02

PART I —— The Objective-C Language (ch.5-8)for循环过程: Step1:index variable赋初值 Step2:循环条件判断 → 执行循环体前先做一次判断 true则执行循环体 false则直接跳出循环,继续程序 Step3:计算更新index variable的表达式 loop expression

u013275181的博客 440

Android12 车载开发TaskView实现分屏

这里只给出TaskView的代码,相关联的源码,请看源码,如果想要使用TaskView需要自己去编译frameWork的源码,打包一个aar,或者jar出来使用,否则无法直接使用。1.如果分屏的应用如启动两个应用按照权重占比,互相不叠加在一起,点触摸击事件都可响应,例如左边启动QQ了,右边启动的是微信,二者窗口都可操作。TaskView是谷歌整合安卓多任务多窗口下交互重新重构的独立出来的module,本身继承自ServiceView,TaskView的相关概念性的东西参考。//创建的taskview。

android_bird_bird的博客 9558

Programming in Objective-C 学习笔记05——Category和Protocol

Chapter 11 Categories and Protocols主要内容: Categories Protocols Categories 将类的定义模块化到相关方法的组或分类中 扩展现有类的定义而无需获取源代码,也不用创建子类

u013275181的博客 385

Python在振动信号处理中的应用(一):振动信号消除多项式趋势项

文章目录一、概述二、最小二乘法去除趋势项原理三、python模块介绍3.1 scikitlearn简介(1)转化器(Transformer)(2)估计器(Estimator)3.2 线性回归LinearRegression3.3 多项式PolynomialFeatures3.4 工作流Pipeline四、python代码实现4.1 构造模拟信号4.2 编写去除趋势项主代码4.3 展示算法效果五、TIPS 一、概述   在振动测试过程中,传感器或采集设备由于自身性能问题或受环境干扰(如温度、供电等影响),容易

白银时代的博客 8585

YOLOv8 更换损失函数DIoU、EIoU、GIoU...Inner-IoU...

介绍了一些损失函数,并将其应用到yolov8训练中

分享一些自己改进代码的实例 888

uniapp 与跨端打包项目:壳子和框架层默认特征,相似是从哪里来的

有团队把原本跑在小程序和 H5 上的项目打包成 iOS 版本上架,业务页面自己写了不少,提交后却收到 4.3(a)。他们的困惑很直接:界面逻辑是自己实现的,为什么打包出来的 IPA 会和那么多跨端项目长得像。问题主要不在业务页面,而在打包壳与框架层。跨端框架把同一套运行时和默认资源编译进每个产物,大量应用共用同一套壳,壳层的默认特征就成了最集中的相似来源。

wuxianda1030的博客 210

WPF实战项目十七(客户端):数据等待加载弹框动画

1、在Common文件夹下新建文件夹Events,新建扩展类UpdateLoadingEvent。2、新建一个静态扩展类DialogExtensions来编写注册和推送等待消息弹框方法。3、在ViewModel中添加实现类NavigationViewModel。5、在View文件夹下新建用户控件ProgressView.xmal。4、在主窗体MainView.xmal中给弹窗界面命名。6、在MainView.xmal.cs中注册消息。

yigu4011的博客 2352
上一篇: 免费获取WP之类的开发者权限或免费使用Azure 2015-10-19
下一篇: 关于js关闭窗口的事件和用法
weixin_34240520
博客等级 码龄11年 3921粉丝 147原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符  | 博主筛选后可见
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值
⌂ 换网址