会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
管小木
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
下一页
2014年7月24日
IOS 物理引擎
摘要: 来自IOS7 by tutorials 下面是个人的一点翻译总结 1,首先在初始化方法李画一个方块UIView* square = [[UIViewalloc]initWithFrame:CGRectMake(100,100,100,100)];square.backgroundColor= [...
阅读全文
posted @ 2014-07-24 12:43 管小木
阅读(243)
评论(0)
推荐(0)
2014年7月14日
斯坦福 IOS讲义 课件总结 三
摘要: 1,@property (nonatomic,readwrite)NSInteger score;注意这里有一个只读和只写的属性,readonly.2,重写初始化方法也可以改名字和传参数,(改名一般以initWith开头),-(instancetype) initWithCardCount:(NSU...
阅读全文
posted @ 2014-07-14 12:31 管小木
阅读(124)
评论(0)
推荐(0)
斯坦福 IOS讲义 课件总结 二
摘要: 1,OC里面传参数个数不同,可以是两个完全不同的方法。如- (void)addCard:(Card *)card atTop:(BOOL)atTop;- (void)addCard:(Card *)card;第二个方法可以这样实现- (void)addCard:(Card *)card{ [self...
阅读全文
posted @ 2014-07-14 11:38 管小木
阅读(270)
评论(0)
推荐(0)
2014年7月12日
斯坦福 IOS讲义 课件总结 一
摘要: 1,引入文件,#import IOS7 中可以这样写@import Foundation;2,在.h文件引入的是公用的,在.m文件里面引用的是本类私有的。私有属性声明@interface Card()//在这里面声明@property (strong) NSString *contents;@end...
阅读全文
posted @ 2014-07-12 13:20 管小木
阅读(267)
评论(0)
推荐(0)
2014年7月3日
线程睡眠
摘要: 1,睡眠方法。[NSThread sleepForTimeInterval:3];关于程序睡眠这里收集了两种方法,看下面代码- (IBAction)setButton:(id)sender { _label.text = @"对方正在思考"; [self performSelector:@sele...
阅读全文
posted @ 2014-07-03 10:10 管小木
阅读(412)
评论(0)
推荐(0)
2014年6月26日
IOS 播放音频
摘要: 1,播放短音频#import #import "GLYViewController.h"static void completionCallback(SystemSoundID mySSID){ AudioServicesPlaySystemSound(mySSID);}@interface ...
阅读全文
posted @ 2014-06-26 11:12 管小木
阅读(197)
评论(0)
推荐(0)
2014年6月19日
objectiveC获取本地时间。
摘要: NSDate * date = [NSCalendarDate date]; NSLog(@"%@", date);日历在IOS里报错,,。 NSDateFormatter *formatter = [[NSDateFormatter alloc] init]; [formatter ...
阅读全文
posted @ 2014-06-19 20:12 管小木
阅读(472)
评论(0)
推荐(0)
视图传值-跳转
摘要: //向下个视图传值#pragma mark - Navigation- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender{//你连接的 identifier 的内容 if ([[segue identifier] ...
阅读全文
posted @ 2014-06-19 13:19 管小木
阅读(226)
评论(0)
推荐(0)
读取IOS的相应路径
摘要: // IOS相应路径 NSString* bundlePath = [[NSBundle mainBundle] bundlePath]; NSLog(@"bundlePath = %@", bundlePath);// documents NSString* documentsDirec...
阅读全文
posted @ 2014-06-19 10:49 管小木
阅读(129)
评论(0)
推荐(0)
Push segues can only be used when the.....
摘要: 刚刚遇到的两个错误,。1,Terminating app due to uncaught exception'NSGenericException', reason: 'Push segues can only be used when the sourcecontroller is managed...
阅读全文
posted @ 2014-06-19 09:57 管小木
阅读(353)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
下一页
公告