摘要: NAME:puall Organization:puallRK:NAVL XXD9 JQLJ 56BY下载地址:http://115.com/file/clft0a0a 阅读全文
posted @ 2011-11-26 11:57 el. 阅读(209) 评论(0) 推荐(0) 编辑
摘要: 1. XCode新建文件后,头部会有开发人员名称,公司名称等信息//Created by Richard Clarke on 11-6-7.// Copyright Surna Hongkong Limited2011. All rights reserved.要修改这两个名称可通过在terminal中运行以下命令:defaults write com.apple.Xcode PBXCustomTemplateMacroDefinitions'{"ORGANIZATIONNAME" = "My Company";}'defaults wr 阅读全文
posted @ 2011-11-26 10:55 el. 阅读(144) 评论(0) 推荐(0) 编辑
摘要: http://developer.apple.com/iphone/library/documentation/iPhone/Conceptual/iPhoneOSProgrammingGuide/TextandWeb/TextandWeb.htmlListing 5-1 Handling the keyboard notifications// Call this method somewhere in your view controller setup code.- (void)registerForKeyboardNotifications{ [[NSNotificationCent. 阅读全文
posted @ 2011-11-26 10:24 el. 阅读(126) 评论(0) 推荐(0) 编辑
摘要: 今天在调试中发现不断出现内存泄漏,后来调试后发现原来是因为UIButton在delloc的时候release了..因为UIButton在创建的时候是使用ButtonWithType的方法,而不是alloc或者create,只有在使用alloc与create关键字的方法下创建对象才会使此对象热retain值+1;而release是使retain-1,所以在创建UIButton之后是不需要releasse的 阅读全文
posted @ 2011-09-03 14:24 el. 阅读(178) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;namespace ConvertNumber{ public partial class Form1 : Form { public Form1() { InitializeCompo... 阅读全文
posted @ 2011-06-25 01:52 el. 阅读(478) 评论(0) 推荐(0) 编辑
摘要: 今天在写phone7的时候想保存一个json文件,但是在字符串格式化的时候一直出现问题 string ss= "{/"LoginId/":/"{0}/","; string jsonstring = String.Format(ss,"h");这样会出现问题,我就估计可能是是冒号出现问题,后来吧冒号去掉还是出现同样问题;然后就怀疑可能是大括号出现问题了,可能需要转义.果然,把大括号去掉之后是格式化没问题的!所以,格式化字符串的时候,有大括号嵌套在里面的话:1.不用大括号(不可能..)2.转义.用{{来转义正确代码: 阅读全文
posted @ 2011-06-24 13:06 el. 阅读(109) 评论(0) 推荐(0) 编辑
摘要: 今天使用网易公开课的时候发现,它的视频播放还不错,自己之前做的那个实在太卡,没有缓冲没有线程,于是乎就打算修改一下。结合performselect使用线程感觉还是不错的。头文件,里面主要是一个标志位,一个MPMoviePlayerViewController。//// PlayVideoViewController .h//// Created by Leung Kinglok on 11-6-23.// Copyright 2011年 scnu. All rights reserved.//#import <UIKit/UIKit.h>@class MPMoviePlayerVi 阅读全文
posted @ 2011-06-23 13:36 el. 阅读(1138) 评论(0) 推荐(0) 编辑
摘要: 昨天手贱把Android的SDK升级了,然后搞到ADT的版本不对应,然后从网上搜了一些办法~效果还可以,重新安装了一次ADT.卸载ADT的方法,方法如下(我的Eclipse版本为3.5):1、选择 Help > Install New Software;2、在"Details" 面板中, 点击"What is already installed?" 链接;3、在Eclipse Installation Details 对话框中,选择"Android DDMS"和"Android Development Tools&qu 阅读全文
posted @ 2011-05-25 09:21 el. 阅读(7905) 评论(0) 推荐(0) 编辑