摘要:
http://www.devdiv.com/thread-67521-1-1.html最近看这个比较多人用到,以前有使用过,现在,粘过来给大伙看看.注意:UIImageView的大小只能跟图片一样大.要不然取色不对.- (UIColor *) getPixelColorAtLocation:(CGPoint)point { UIColor* color = nil; CGImageRef inImage = self.image.CGImage; // Create off screen bitmap context to draw the image... 阅读全文
摘要:
http://www.devdiv.com/thread-69786-1-1.htmlUILocalNotification *notification=[[UILocalNotification alloc] init]; if (notification!=nil) { NSDate *now=[NSDate new]; //notification.fireDate=[now addTimeInterval:period]; notification.fireDate = [now dateByAddingTimeInterval:period]; ... 阅读全文
摘要:
http://www.cocoachina.com/bbs/read.php?tid=79243&page=e&#a如题~想要实现 javascript与objc的交互如何实现javascript调用objc内部的某一个接口呢?我是这样实现的例如某一入口<input type="button" id="enter" value="enter" onclick="testClick('printLog1:Log2:','ddddd','aaaaa');&qu 阅读全文