我的苹果开发学习笔记

好链接:


你的第一个 iOS 应用程序: 100% 的编程方式


http://www.oschina.net/translate/your-first-ios-app-100-programmatically?print

iOS 7 Xcode 5 最初级小教程, 人生中第一个App诞生了.:

http://www.macx.cn/thread-2104805-1-1.html
eseedo:《让不懂编程的人爱上iPhone开发》系列教程1-iOS7版:

http://www.cocoachina.com/applenews/devnews/2013/0916/7001.html

我后来在网上收集到了更完整的教程以及源码。(感谢essedo和万能的互联网。)

下载地址:http://pan.baidu.com/s/1kTLVeYz

xcode创建第一个类:

http://blog.csdn.net/ewrfedf/article/details/8507927

Creating Hello World App Using Xcode 5 and Interface Builder

http://www.appcoda.com/hello-world-app-using-xcode-5-xib/

http://blog.csdn.net/totogo2010/article/details/7632384
iPhone应用程序开发基础教程:iboutlet  和 ibaction

http://blog.csdn.net/richard_wu2005/article/details/6654084

苹果向开发者推出中文版iOS应用开发入门指南

https://developer.apple.com/library/ios/referencelibrary/GettingStarted/RoadMapiOSCh/chapters/Introduction.html

xcode 5 取消arc
http://www.cnblogs.com/tomkillua/p/3414312.html
iOS开发:不用xib,直接创建界面
http://wakan190.blog.163.com/blog/static/183489574201291972546812/
语法讲得很好的文章
http://blog.csdn.net/jiangshide/article/details/7570011
xcode由5.0升级到5.1时,原有的程序可能不能运行,这时可以尝试这招
http://blog.csdn.net/ifziv/article/details/21079065
横屏设置
http://www.cocoachina.com/bbs/read.php?tid=192176&page=e

你的第一个 iOS 应用程序: 100% 的编程方式

http://www.oschina.net/translate/your-first-ios-app-100-programmatically?print




command+鼠标左键点击函数名,可以找到这个函数在哪里被调用。




alt+鼠标左键,可以查看和函数名有关的文档。


经常编译不过,可以试试:

1.cd ~/Library/Developer/Xcode/DerivedData 
2.rm -fr *    //注释:-fr和*是分开的
3.关闭模拟器,关闭Xcode,重新启动Xcode
重新启动后我新建一个项目,运行,OK啦。
不知道对你的有没有用,你可以试一下。我觉得这个Xcode的一个bug。碰到好多次了,真心无语


 

ios UICollectionView的使用


http://blog.csdn.net/yesjava/article/details/12912505

UIViewCollection说明
http://blog.sina.com.cn/s/blog_5a6efa330101doc9.html

导入的框架不支持ARC,解决方法
http://www.myexception.cn/mobile/1345392.html
讲解UITableView
http://www.cnblogs.com/geory/archive/2013/02/27/2913618.html
ios 屏幕自适应变化
http://moto0421.iteye.com/blog/1586791

iOS 之美:iOS Delegate 使用五步曲

http://leopard168.blog.163.com/blog/static/168471844201307112149221/


home 键
command + shift + h

Xcode4使用技巧
http://blog.devtang.com/blog/2012/03/10/xcode4-tips/


http://blog.csdn.net/mad1989/article/details/7972612
iphone 分辨率大全
http://www.ptbus.com/post/6855/

iphone 开发常用代码
http://www.oschina.net/question/565065_76233
ios隐藏状态条
http://blog.csdn.net/kqjob/article/details/11925021



如果是类的public属性,用property直接写在.h文件里
如果不是类的public属性,用property写在.m文件里(这个属性可能是protected,或者private的)
    case 1: protected(只有子类和本身可以访问)
    case 2: private(不能随随便便访问)
在这两种情况下,类外的类想访问的话,就要进行特殊的操作。(比如使用getter或者setter)
我觉得这个帖子写得比较容易懂,适合初学者看。
http://blog.csdn.net/holydancer/article/details/7355833
它的意思好像是,使用property和sythesize可以比较方便地做出getter与setter(代码会比java短,因为java的getter和setter会比objective-c冗长)




理解2:
平时这么写即可:
@interface MyViewController :UIViewController
@property (nonatomic, retain) UIButton *myButton;
@end
不用写成
@interface MyViewController :UIViewController
{
    UIButton *myButton;
}
@property (nonatomic, retain) UIButton *myButton;
@end
无视_myButton,干脆把它当self.myButton好了




ios6以后  强制横屏

//

#pragma mark iOS 6 landscape

//

//允许屏幕自动旋转

- (BOOL)shouldAutorotate {

    return YES;

}


//在允许屏幕自动旋转的情况下,只支持屏幕朝左或者朝右就是强制横屏。

- (NSUInteger)supportedInterfaceOrientations {

    returnUIInterfaceOrientationMaskLandscapeRight;

    //| UIInterfaceOrientationMaskLandscapeLeft;

}

ios design patterns
http://www.raywenderlich.com/46988/ios-design-patterns

详解Objective-C中变量和数据类型


http://mobile.51cto.com/iphone-280970.htm

在使用core的时候应该用iosDevice编译。



%m.nf
m总的长度,n是小数的长度。
也可以%.2f
%.2f 这个用的比较多



Convert NSString to int

1NSString *aNumberString = @"123";
2int i = [aNumberString intValue];

 

Convert int to NSString

1int aNumber = 123;
2NSString *aString = [NSString stringWithFormat:@"%d", aNumber];




//拼接字符串

    int aIntNumber = [indexPath row];

    NSString *tail = [NSStringstringWithFormat:@"%d", aIntNumber];

    NSLog (@"%@", tail);

    NSString *head = @"cell";

    NSString *result = [headstringByAppendingString:tail];







Objective-c之NSArray(NSMutableArray)

 
http://blog.sina.com.cn/s/blog_4adf31ea0100nlnp.html


Objective-C    处理JSON数据源
http://blog.163.com/sunshinesun_9/blog/static/225855712009517112921195/

操作NSArray和NSMutableArray
http://www.cnblogs.com/stoic/archive/2012/07/09/2582773.html



xcode打包framework

http://my.oschina.net/xiguaa/blog/146434

http://www.cnblogs.com/heyonggang/p/3513479.html

http://www.cocoachina.com/newbie/env/2011/1009/3334.html

http://blog.sina.com.cn/s/blog_9693f61a0101dgwc.html


  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值