`
文章列表
原文:http://bj007.blog.51cto.com/1701577/544006 我的摘要: 1、iphone有几个内嵌的随机数发生器,如rand()、random()、arc4random() 其精确程度为 arc4random()  >  random()  >  rand() 可以由其原型进行推断   int rand(); long random(); u_int32_t arc4random();   2、rand()和random()在使用之前需要先初始化随机种子,即调用 srandom(time(NULL)); ...
转 http://blog.csdn.net/zltianhen/article/details/6841466 1.UIWebView 播放(无法控制周期) .h   [cpp] view plaincopy
转自 http://blog.csdn.net/sjzsp/article/details/6947591 方法一: -(void) viewDidLoad{[self performSelectorInBackground:@selector(call1) withObject:nil]; }-(void) call1{timer1 = [NSTimer scheduledTimerWithTimeInterval:3.0 target:self selector:@selector(doSomething) userInfo:nil repeats:NO]; [[NSRunLoop ...
  Go 语言中的内构函数,不需要任何引用   close new panic complex closed make recover real len append print image cap copy println    close 和closed 用于channel通信和关闭channel   len 和cap 可用于不同的类型 len用于返回字符串、slice和数组的长度。   new 用于内存分配   make 用于内建类型map、slice、channel的内存分配   copy 用于复制slice、append 用于追加slice    p ...
  Go 中只有很少几个结构控制。没有do或者while循环 只有for、switch、if还有叫做类型选择和多路通信转接器select 与其他语言比较是没有圆括号、而语句体必须总是包含在大括号内   if x >0 { return x } else { return y } 强制大括号鼓励将简单的if语句写在多行上。   if和switch 接受初始化语句。通常设置一个局部变量    if err := file.Chmod(0664); err !=nil { log.Stderr(err) return err }   在Go 语法中是非法 ...
  Erlang 与 go在部分功能上相似。Erlang和Go主要的区别是Erlang是运行在虚拟机上的函数式语言,而Go是命令式语言 Erlang是运行在虚拟机上,而Go是编译的。Go用起来感觉更加接近Unix   Go语言如果希望将两个或则更多的语句放在一 ...

golang install for mac

  转自 http://www.kelvinwong.ca/2009/11/12/installing-google-go-on-mac-os-x-leopard/ To get started, make sure that you have Python and Mercurial installed on your Intel Mac (PowerPC is not supported at this point). Also make sure that you have XCode installed and that you are attached to the Interne ...
Mac下MySql卸载方法 mac下mysql的DMG格式安装内有安装文件,却没有卸载文件……很郁闷的事。网上搜了一下,发现给的方法原来得手动去删。很多文章记述要删的文件不完整,后来在stackoverflow这里发现了一个遗漏的地方,所以将完整版记述在这里,以供查阅。先停止所有mysql有关进程。sudo rm /usr/local/mysqlsudo rm -rf /usr/local/mysql*sudo rm -rf /Library/StartupItems/MySQLCOMsudo rm -rf /Library/PreferencePanes/My*vim
  进入mysql console: 输入 mysql>show variables like 'character%';     +--------------------------+-----------------------------------------------------+ | Variable_name            | Value                                               | +--------------------------+------------------------------ ...
Creating an iPhone Daemon – Part 5 Author :admin     Category : Chris Alvares, Programming    26 Jun | 47 Comments This is part five of the blog series “Creating an iPhone Daemon”, for part four please click this link iPhone 3.0 just came out, and while the old code set will still work wit ...
Creating an iPhone Daemon – Part 4 Author :admin     Category : Chris Alvares, Programming    25 Mar | 10 Comments This is part four of the blog series “Creating an iPhone Daemon”, for part three please click this link This is the coolest part of the series. Up until now, all the code can ...
This is part three of the blog series “Creating an iPhone Daemon”, for part one please click this link In the last part of the series, we created the header file for our DLocationDelegate class, now lets create the implementation file (DLocationDelegate.h) // // DLocationDelegate.m // ...
Here is part two of the blog series “Creating an iPhone Daemon”, for part one please click this link As I said in part 1, we will be creating the DLocationDelegate class.With most daemons, you do a task like read a file, do something with that file, sleep for a certain amount of time, then check ...
So I thought I would start this blog of with a BANG!, and show people how to create an iPhone Daemon. A daemon is a program or application that runs in the background on the device. This differs from a regular program as it is started on boot of the device, and can run at certain intervals withou ...

iPhone数据库结构

    博客分类:
  • ios
(转)http://wuhongsheng.com/mac/2007/10/iphone-database-structure/ /** iphone database structure* @author zye* @contact zye@tudou.com* @update 20070924* @version 0.1* @url http://yegq.yeax.com/?p=162* @copyleft 此文档可随意分发。如果你发布的iphone应用得益于此文档,建议注明,或给我email,共贺之。*/一、AddressBook.sqlitedb 通讯录数据库 locatio ...
Global site tag (gtag.js) - Google Analytics