#define SWITCH_TAG 102- (void) updateSwitch:(id)sender { // toggle the switch from its current setting UISwitch *s = [self.view.window switchWithTag:SWITCH_TAG]; [s setOn:!s.isOn];} - (void) updateTime:(id)sender { // set the label to t
文章目錄 Setting the repeat intervalLimitationsExample code when I wrote about local notifications one thing that I left out was the ability to schedule a repeating notification. One of the reasons I did not bother to mention
轉載地址:http://www.cnblogs.com/zeejun/archive/2012/07/22/2603329.htmlios 有如下三種隨機數方法:1. srand((unsigned)time(0)); //不加這句每次產生的隨機數不變 int i = rand() % 5; 2. srandom(time(0)); int i = random() % 5;3. int i = arc4random() % 5 ; 註:
1.加文字-(UIImage *)addText:(UIImage *)img text:(NSString *)text1 { //get image width and height int w = img.size.width; int h = img.size.height; CGColorSpaceRef colorSpace = CGColorSpaceCreateDeviceRGB(); //cre
There are 4 resolution ios devices currently: iphone, iphone 4(s), ipad1/2, new ipad, feel painful about this? don't tell your feeling to android developers.in cocos2d, just use suffix to the image files or atlas as below rules:static NSString
when you want to convert your music or sound effect file to your ios application, you need to convert them to some audio format even though iOS can support many format to achieve performance and decrease your app size.there are some good command0: