![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
objective-c
文章平均质量分 69
baibai_1990
这个作者很懒,什么都没留下…
展开
-
NSString
stringWithUTF8String: const char *school = (char *)sqlite3_column_text(statement, 18); if (school) { person.school = [NSString stringWithUTF8String:school]; } sqlite允许插入空值,但是stringW原创 2013-01-24 10:46:46 · 179 阅读 · 0 评论 -
录音
http://www.devdiv.com/forum.php?mod=viewthread&tid=125220 9.5 在其他活动声音上面播放音频 问题 你可能想在播放音频时让其他程序静音,或者在其他程序的音频回放之上播放音频。 解决 使用音频会话设置你的应用程序所使用的音频类别。 讨论 AVAudioSession类由AVFoundation框架转载 2013-01-25 17:59:02 · 1322 阅读 · 0 评论 -
数组
NSArray *array1 = [[NSArray alloc]init]; NSArray *array2 = [[NSArray alloc]init]; if (array1 == array2) { NSLog(@"array1 == array2");//输出 } if ([array1 isEqual:array2]) {原创 2013-01-14 16:38:08 · 196 阅读 · 0 评论 -
extern
NSString *strTest= nil; @implementation SUVCommonInfoController @end extern NSString*strTest; @implementation SUVMsgController //在此类中,可以使用strTest了 @end extern可以置于变量或者函数前,以表示变量或者函数的定义在别的文件中,提示编译器遇到此变量原创 2013-01-22 11:58:03 · 175 阅读 · 0 评论 -
常用的网格布局算法
#define kTotalCount 5 #define kRowCount 4//每行的按钮个数 #define kBtnWidth 50 #define kBtnHeight 50 #define kRowSpace 5//间隔 行间距 #define kColumnSpace 20//列间距 int order = 0; for (int i = 0; i < kTotalCoun原创 2013-02-04 14:04:47 · 1580 阅读 · 0 评论 -
static
static 放在@implementation MyClass 之外的,默认为0, 第一点 static int sCount = 100; @implementation MyClass +(void)addCount { sCount ++; NSLog(@"静态整型变量的值为:%d", sCount); }原创 2013-01-06 15:50:17 · 275 阅读 · 0 评论