
iphone/ipad
猿贷码
做一件事,做到极致。人生有很多路要走,做自己真正喜欢的事情,什么时候也不算晚
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
UITextView 的创建和键盘禁用
UITextView 使用方法和禁用键盘 (2012-03-30 20:18:47)[编辑][删除]转载▼标签: it分类: iphone开发1.创建并初始化创建UITextView的文件,并在.h文件中写入如下代码: #import @interface TextViewController原创 2012-03-30 20:47:04 · 3456 阅读 · 0 评论 -
如何创建一个不使用xib的helloworld;
1.先新建一个empty application2.在新建objective-c classAppDelegate.h的写法#import#import"ViewController.h"@interface AppDelegate :UIResponder UIApplicationDelegate>{原创 2012-04-08 12:20:17 · 900 阅读 · 0 评论 -
iphone 录音之简单声音获取
- (void)viewDidLoad { [superviewDidLoad]; NSURL *url = [NSURLfileURLWithPath:@"/dev/null"]; NSDictionary *settings = [NSDictionarydictionaryWithObjectsAndKeys:原创 2012-04-07 19:20:02 · 1308 阅读 · 0 评论 -
iphone 开发实例代码
扫描wifi信息:http://code.google.com/p/uwecaugmentedrealityproject/http://code.google.com/p/iphone-wireless/条形码扫描:http://zbar.sourceforge.net/iphone/sdkdoc/install.htmltcp/ip的通讯协议:h转载 2012-05-14 21:12:15 · 2838 阅读 · 0 评论 -
UITextView,UILable 控制行高
UITextView 和UILable 它本身是没有控制行高的。很多人说用Uiwebview,但我觉得那不好用,要用html布局麻烦,占内存。也有人说drawatpoint,但发现画中文的时候也很占内存,我就投机取巧一下吧UILable 跟下面的用法一样的自己改一下// DrawAtPoint//// Created by xia kejie on 12-5-13.//原创 2012-05-13 19:39:03 · 4339 阅读 · 0 评论 -
ios 判断当前设备
if(UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPhone) { CGSize result = [[UIScreen mainScreen] bounds].size; if(result.height == 480.f) { return @原创 2012-10-24 10:39:06 · 2370 阅读 · 0 评论 -
https 写了一个数据返回类
//// httpsClass.h// https//// Created by 夏 科杰 on 12-12-20.// Copyright (c) 2012年 夏 科杰. All rights reserved.//#import @interface httpsClass :NSObject原创 2012-12-20 12:59:17 · 2241 阅读 · 1 评论