随笔分类 -  iphone development

上一页 1 ··· 4 5 6 7 8 9 10 11 12 13 下一页
iphone 应用程序参考库
摘要:1,本文摘自:http://www.apple.com.cn/developer/iphone/library/documentation/iPhone/Conceptual/iPhoneOSProgrammingGuide/GraphicsandDrawing/GraphicsandDrawing.html#//apple_ref/doc/uid/TP40007072-CH10-SW32 阅读全文
posted @ 2011-12-05 13:37 wtq 阅读(164) 评论(0) 推荐(0)
iphone 如何实现全屏截图
摘要:本文摘自:http://www.devdiv.com/forum.php?mod=viewthread&tid=58560&highlight=%BD%D8%CD%BC本文参考:http://www.devdiv.com/forum.php?mod=viewthread&tid=31687&highlight=%BD%D8%CD%BCUIGraphicsBeginImageContext(pictureView.bounds.size); [pictureView.layer renderInContext:UIGraphicsGetCurrentContext 阅读全文
posted @ 2011-12-05 11:47 wtq 阅读(1523) 评论(0) 推荐(0)
iphone 如何利用application load 上传应用程序
摘要:本文摘自:http://www.cocoachina.com/applenews/devnews/2010/0721/1903.html苹果又对 App Store 的上传政策进行了更改,从7月22号起,苹果开发者只能用 Application Loader 上传应用。相信开发者们已经收到了苹果发来的邮件通知您可以通过以下链接下载 Application Loaderhttp://itunesconnect.apple.com/apploader/ApplicationLoader_1.3.dmgApplication Loader 的用法请看苹果官方的开发者手册第132页,下载地址http: 阅读全文
posted @ 2011-11-30 18:33 wtq 阅读(1916) 评论(1) 推荐(0)
iphone Quartz2D使用心得
摘要:1,如果视图是从nib中加载的,我们应该首先实现initWithCode:因为nib中的对象实例将存储为归档对象。(某一个view设置为自定义的子view)hitTest代码范例:- (UIView *)hitTest:(CGPoint)point withEvent:(UIEvent *)event{ for (UIView *tmpView in self.subviews ) { if(tmpView.userInteractionEnabled && [tmpView isMemberOfClass:[UIButton class]]) { if (CGRectCont 阅读全文
posted @ 2011-11-30 18:24 wtq 阅读(359) 评论(0) 推荐(0)
iphone 随机颜色生成
摘要:使用类别来为UIColor添加方法:#import <UIKit/UIKit.h>@interface UIColor(Random)+(UIColor *)randomColor;@end实现文件:@implementation UIColor(Random)+(UIColor *)randomColor{ static BOOL seeded = NO; if (!seeded) { seeded = YES; srandom(time(NULL)); } CGFloat red = (CGFloat)random()/(CGFloat)RAND_MAX; CGFlo... 阅读全文
posted @ 2011-11-30 11:03 wtq 阅读(338) 评论(0) 推荐(0)
【iphone】 如何将app发布到appstore中
摘要:本文摘自:http://www.yifeiyang.net/introduction-to-iphone-development-11-publishing-programs-in-the-app-store/#sec5 阅读全文
posted @ 2011-11-29 19:04 wtq 阅读(260) 评论(0) 推荐(0)
【转载】 iphone 监测手机信息
摘要:http://www.devdiv.com/thread-90336-1-1.html 阅读全文
posted @ 2011-11-29 18:41 wtq 阅读(137) 评论(0) 推荐(0)
【转载】 iphone 半透明的自定义tabbar,带滑块动画效果
摘要:原文摘自:http://www.cocoachina.com/bbs/read.php?tid=60977demo 阅读全文
posted @ 2011-11-28 12:45 wtq 阅读(529) 评论(0) 推荐(0)
iphone 如何设置在uiImageView上添加按钮,按钮透明并且能响应事件
摘要:本文摘自:http://www.cocoachina.com/bbs/read.php?tid=49574设置:按钮的alpha透明的,按钮类型为custom… 阅读全文
posted @ 2011-11-28 11:43 wtq 阅读(797) 评论(0) 推荐(0)
iphone 如何设置按钮透明,文字不透明
摘要:本文摘自:http://www.cocoachina.com/bbs/simple/?t50503.html代码改这样设一下的话可以实现,而且不会很麻烦:UIButton 设置类型为UIButtonTypeCustomsetTitleColor 可以设置button上文字的颜色,backgroundColor设置为clearColor就可以实现button透明文字不透明 阅读全文
posted @ 2011-11-28 11:41 wtq 阅读(2193) 评论(1) 推荐(0)
iphone 加速度传感器的作用
摘要:1但更广义地说,加速度传感器在检测人的即时背景环境信息上更有用处。比如说,通过三个轴上加速度的变化值的分析处理,手机可以知道你现在是在走路还是骑车还是坐车,是上坡还是下坡,等等。 阅读全文
posted @ 2011-11-28 11:34 wtq 阅读(1188) 评论(0) 推荐(0)
iphone 重力感应器 停止工作
摘要:原文参考:http://www.cocoachina.com/bbs/simple/?t51531.html如何使UIAccelerometer停止工作?[[UIAccelerometer sharedAccelerometer] setDelegate:self]; 阅读全文
posted @ 2011-11-26 17:08 wtq 阅读(287) 评论(0) 推荐(0)
【转载】iphone 重力感应器详解.
摘要:本文摘自:http://www.haogongju.net/art/940762所謂的加速感應器是利用使用者對iPhonedevice 所做的力量來衡量其加速度與重力,可以偵測三個方向的加速度,即 x,y,z 軸,透過 (x,y,z) 軸所丟出的參數,你可以得知類似以下狀況(1) iPhone是正面朝上還是背面朝上(2) 使用者是正拿著還是測拿著 (可以配合自動旋轉功能)(3) 使用在把手機拿動了多少距離,包括上下左右加速感應器 (Acceleration)偵測的單位為g力(即重力),正常情況我們都會受地心引力所影響,即一個 g 力,用平常的直立方式觀看 iPhone,則其會在 y 軸得到 1 阅读全文
posted @ 2011-11-26 10:09 wtq 阅读(990) 评论(0) 推荐(0)
【转摘】iphone Sqlite3学习实践总结
摘要:本文摘自:http://www.cnblogs.com/GoGoagg/archive/2011/08/12/2136280.html【实践环境】操作系统:mac 10.6工具:终端,Xcode【资料和实践】官方网址:http://www.sqlite.org/index.html当前版本3.7.7.1在mac 10.6上,版本是3.6.12在终端上,程序名称是sqlite3sqlite3 -help来看此程序用法常用:sqlite3 FileName,来进入某一个特定数据库文件sqlite3 -version,查看版本好,实践录入:mac-Pro:~ user$sqlite3 testdbs 阅读全文
posted @ 2011-11-25 15:49 wtq 阅读(633) 评论(0) 推荐(0)
iphone 如何将数据存储到plist(属性列表文件)中
摘要:1:详情见demo此例子需要解决的一个问题,就是通知事件name:UIApplicationWillTerminateNotification 根本就没执行啊UIApplication *app = [UIApplication sharedApplication];[[NSNotificationCenter defaultCenter] addObserver:selfselector:@selector(applicationWillTerminate:)name:UIApplicationWillTerminateNotification object:app];iPhone开发基础中 阅读全文
posted @ 2011-11-25 11:36 wtq 阅读(565) 评论(0) 推荐(0)
应用程序沙盒
摘要:1,文件保存策略 1.1单个文件持久性 1.2 多个文件持久性 优势:延迟加载用户数据 方便释放闲置的内存 缺点:增加了应用程序的复杂性1.3持久保存应用程序数据 获取路径: //获取应用程序沙盒Document NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES); NSString *documentsDirectory = [paths objectAtIndex:0]; //获取theFile.txt的完整路径 NSStri... 阅读全文
posted @ 2011-11-25 10:47 wtq 阅读(836) 评论(0) 推荐(0)
【转载】iphone 重力感应器详解
摘要:本文摘自:http://www.cnblogs.com/somamy/articles/2147742.html参考:http://www.cnblogs.com/kidreborn/archive/2011/05/12/2044560.html所謂的加速感應器是利用使用者對 iPhone device 所做的力量來衡量其加速度與重力,可以偵測三個方向的加速度,即 x,y,z 軸,透過 (x,y,z) 軸所丟出的參數,你可以得知類似以下狀況(1) iPhone 是正面朝上還是背面朝上(2) 使用者是正拿著還是測拿著 (可以配合自動旋轉功能)(3) 使用在把手機拿動了多少距離,包括上下左右加速感 阅读全文
posted @ 2011-11-24 10:53 wtq 阅读(1412) 评论(0) 推荐(0)
iphone 加速器demo
摘要:原文摘自:http://www.devdiv.com/forum.php?mod=viewthread&tid=59653&extra=page%3D1%26filter%3Ddigest%26digest%3D1%26digest%3D1一个计速计的Demo,包含了利用重力感应移动图片和获取设备方向2个小Demo 阅读全文
posted @ 2011-11-24 09:44 wtq 阅读(336) 评论(0) 推荐(0)
【转载】iphone 使用iPhone三轴感应器的代码例子
摘要:本文摘自:http://www.cocoachina.com/iphonedev/sdk/2010/0624/1749.html多应用里都要用到苹果iPhone自带的三轴感应器(加速度传感器),希望下面这段代码例子能为您使用iPhone三轴感应器打开思路。#include <IOKit/IOKitLib.h>#include <CoreFoundation/CoreFoundation.h>typedefstruct{}*IOHIDEventSystemRef;typedefstruct{}*IOHIDEventRef;floatIOHIDEventGetFloatVa 阅读全文
posted @ 2011-11-23 18:26 wtq 阅读(482) 评论(0) 推荐(0)
iphone 如何设置应用程序的配置文件
摘要:一般的步骤:1:创建设置束,然后根据属性列表中格式进行输入相应的键值对。再利用NSUserDefault类进行设置具体代码请见:demo 阅读全文
posted @ 2011-11-23 18:02 wtq 阅读(509) 评论(0) 推荐(0)

上一页 1 ··· 4 5 6 7 8 9 10 11 12 13 下一页