摘要: 阅读全文
posted @ 2012-11-14 21:03 白条围巾 阅读(151) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2012-11-14 21:02 白条围巾 阅读(173) 评论(0) 推荐(0) 编辑
摘要: 1.write to方式保存到沙盒目录下的documents文件夹下:这种方式适合字符串数组的存储。//获得当前程序的沙盒目录路径NSString *path = NSHomeDirectory();//拼接要保存的文件全路径,这个方法会自动在@“Document...”前面加斜杠path = [path stringByAppendingPathComponent:@"Documents/student.plist"];///从文件创建数组NSArray *array = [NSArray arrayWithContentsOfFile:path];//将内容写入文件中[ 阅读全文
posted @ 2012-11-14 20:45 白条围巾 阅读(4201) 评论(0) 推荐(1) 编辑
摘要: 主要是UIImagePickerControllerDelegate协议的实现- (void) touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event { UITouch *oneTouch = [touches anyObject]; UIView *touchView = oneTouch.view; // 判断如果点击到图片了 if (touchView == previewImageView) { UIImagePickerController *ipc = [[UIImagePickerC... 阅读全文
posted @ 2012-11-14 18:04 白条围巾 阅读(354) 评论(0) 推荐(0) 编辑
摘要: 服务器文档部分9.创建新相册 /my/create_album.php参数说明: 参数名称 必选 类型 说明 albumname TRUE String 相册名称 privacy TRUE int 隐身设置,可以选择值为: 0:全站用户可见1:全好友可见 2:仅指定的好友可见3:仅自己可见 4:凭密码查看返回值 {"code": "do_success","message": "进行的操作完成了"“id” : “111”} 10.获取相册列表 /my/album_list.php 返回值返回值参考 user_lis 阅读全文
posted @ 2012-11-14 17:56 白条围巾 阅读(323) 评论(0) 推荐(0) 编辑
摘要: 服务端文档:1.登录 /my/login.php 输入参数: username password 例如: username=test&password=123456 输出响应:<result><code>login_success</code><uid>登录成功</uid><message>登录成功</message><m_auth>f06eYFOrTIA/QmDa4mNEr1QJYeMeXi+Nfy5JF2441xNA4m5Cd192+VOkFT3Te1pYomXeU0SuMvWpMn5d 阅读全文
posted @ 2012-11-14 17:26 白条围巾 阅读(470) 评论(0) 推荐(0) 编辑
摘要: 服务端文档:注册 /my/register.php 输入参数: 参数说明: username 用户名 password 密码 email 邮箱 成功返回值:{"code": "registered","message": "注册成功了,进入个人空间"} 注册失败: {"code": "user_name_already_exists","message": "用户名已经存在"}导入的包:// GET#import "ASIHt 阅读全文
posted @ 2012-11-14 17:14 白条围巾 阅读(3421) 评论(0) 推荐(0) 编辑
摘要: UIViewAutoresizingNone = 0,UIViewAutoresizingFlexibleLeftMargin = 1 << 0,UIViewAutoresizingFlexibleWidth = 1 << 1,UIViewAutoresizingFlexibleRightMargin = 1 << 2,UIViewAutoresizingFlexibleTopMargin = 1 << 3,UIViewAutoresizingFlexibleHeight = 1 << 4,UIViewAutoresizin... 阅读全文
posted @ 2012-11-14 16:13 白条围巾 阅读(173) 评论(0) 推荐(0) 编辑