代码改变世界

阅读排行榜

NSRunLoop的进一步理解

2012-03-21 13:24 by java环境变量, 267 阅读, 收藏,
摘要: 本文基于一篇网络文章,加入了一些自己的理解,希望对大家有所帮助iPhone应用开发中关于NSRunLoop的概述是本文要介绍的内容,NSRunLoop是一种更加高明的消息处理模式,他就高明在对消息处理过程进行了更好的抽象和封装,这样才能是的你不用处理一些很琐碎很低层次的具体消息的处理,在NSRunLoop中每一个消息就被打包在input source或者是timer source中了,来看详细内容。1.什么是NSRunLoop我们会经常看到这样的代码:- (IBAction)start:(id)sender{pageStillLoading = YES;[NSThread detachNewT 阅读全文

hdu 1023 Train Problem II----catalan数列.大数乘除

2012-02-28 17:44 by java环境变量, 267 阅读, 收藏,
摘要: Train Problem IITime Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 2714Accepted Submission(s): 1517Problem DescriptionAs we all know the Train Problem I, the boss of the Ignatius Train Station want to know if all the trains come in strict-increasing o 阅读全文

poj 3349 Snowflake Snow Snowflakes -----hash (vector)

2012-03-15 14:58 by java环境变量, 266 阅读, 收藏,
摘要: Snowflake Snow SnowflakesTime Limit:4000MSMemory Limit:65536KTotal Submissions:20853Accepted:5449DescriptionYou may have heard that no two snowflakes are alike. Your task is to write a program to determine whether this is really true. Your program will read information about a collection of snowflak 阅读全文

Oracle 11g Alert log 文件位置的问题

2012-05-24 10:52 by java环境变量, 263 阅读, 收藏,
摘要: Oracle 11g Alert log 文件位置的问题alert log XML 文件位置:select value from v$diag_info where name ='Diag Alert';Alert log 文本文件位置:select value from v$diag_info where name ='Diag Trace'; 阅读全文

[iphone] LED闪光灯控制

2012-02-24 11:41 by java环境变量, 263 阅读, 收藏,
摘要: #import<AVFoundation/AVFoundation.h>voidCBLediOS::turnOnLed(){AVCaptureDevice*device=[AVCaptureDevicedefaultDeviceWithMediaType:AVMediaTypeVideo];if([devicehasTorch]){[devicelockForConfiguration:nil];[devicesetTorchMode:AVCaptureTorchModeOn];[deviceunlockForConfiguration];}}voidCBLediOS::turnO 阅读全文
上一页 1 ··· 52 53 54 55 56 57 58 59 60 ··· 110 下一页