- 博客(26)
- 问答 (1)
- 收藏
- 关注
原创 Client-SIde creates download file without connecting server
https://github.com/dcneiner/Downloadify
2012-08-28 00:38:09
156
原创 property “assign” and “retain” for delegate
1 Answeractiveoldestvotesup vote13down voteacceptedThe documentation says:Retaining an object creates a strong reference, and an object cannot be deallocated until all of i...
2012-06-25 01:11:33
136
如何从一个方法中返回来自于集合的对象
- (ImageScrollView *)dequeueRecycledPage{ ImageScrollView *page = [recycledPages anyObject]; if (page) { [[page retain] autorelease]; [recycledPages removeObject:page]...
2012-06-25 00:20:44
563
原创 类似Tweetie那种拽下来就refresh的代码
http://github.com/enormego/EGOTableViewPullRefresh
2012-06-22 12:28:49
148
原创 difference between frame and bounds Property
boundsThe bounds rectangle, which describes the view’s location and size in its own coordinate system.@property(nonatomic) CGRect boundsDiscussionOn the screen, the bounds rectangle represen...
2012-06-17 21:55:56
141
原创 Apple Offical : View Programming Guide for iOS
https://developer.apple.com/library/ios/#documentation/WindowsViews/Conceptual/ViewPG_iPhoneOS/WindowsandViews/WindowsandViews.html#//apple_ref/doc/uid/TP40009503-CH2-SW1
2012-06-16 17:06:30
123
原创 use UINavigationController inside a UITabBarController
If you want to add a UINavigationController into a TabView, and while the tab was taped,turn current view to display rootView of the UINavigationController.Keep following principles.1,Don't put ...
2012-06-16 13:39:37
103
原创 关于ios中bounds与frame
1.ios中的bounds是指相对于视图自己的坐标,所以默认view.bounds.origin = (0,0);2.ios中的frame是指相对于父视图的坐标3.当bounds改变的时候,会影响到frame比如下面的代码:CGRect frame = CGRectMake(0, 0, 200, 200);UILabel * label = [UILabel alloc] initWithFram...
2012-06-16 12:03:49
153
原创 从Email正则表达式简介正则表达式
Email验证表达式:^\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$解释:^ 正则表达式开始\w 匹配 A-Z,a-z,0-9,_ + 匹配前面的 \w 一次或多次([-+.]\w+)** 匹配前面的 ([-+.]\w+) 零次或多次() 特殊字符与 * 相配[-+.] 匹配 -,+,. 中任意一个字符\w 匹配 A-Z,a-z,0-9,_+ 匹...
2010-09-12 23:57:49
402
原创 Enum常量放入NSArray的方法
ypedef enum { UIViewAnimationCurveEaseInOut, UIViewAnimationCurveEaseIn = 0, UIViewAnimationCurveEaseOut, UIViewAnimationCurveLinear} UIViewAnimationCurve;This result of th...
2010-09-07 23:14:13
541
原创 objective-c NSString 使用详细指南
Declaring Constant String Objects A constant string object is declared by encapsulating the string in double quotes (") preceded by an @ sign. For example:@"This is a constant character strin...
2010-09-02 11:36:26
127
原创 What is Core Data?
Path to SuccessThe Core Data Programming Guide is primarily a reference volume. You should not simply try to read it straight through to understand Core Data.To learn about Core Data, you should...
2010-08-31 22:03:28
113
原创 Eclipse快捷键大全(转载)
Ctrl+1 快速修复(最经典的快捷键,就不用多说了)Ctrl+D: 删除当前行 Ctrl+Alt+↓ 复制当前行到下一行(复制增加)Ctrl+Alt+↑ 复制当前行到上一行(复制增加)Alt+↓ 当前行和下面一行交互位置(特别实用,可以省去先剪切,再粘贴了)Alt+↑ 当前行和上面一行交互位置(同上)Alt+← 前一个编辑的页面Alt+→ 下一个编辑的页面(当然是针对...
2010-08-18 11:11:15
85
原创 iPhone にインストールされているフォント一覧
タイトルの通り、iPhone にインストールされているフォントをフォントファミリー毎に書き出してみた。FontViewer と、Fonts をインストールして確認しました。American Typewriter * AmericanTypewriter * AmericanTypewriter-BoldAppleGothic * Ap...
2010-07-19 13:21:18
221
原创 Cocoaのメモリ管理(3)
保持と解除という方法は、理屈は分かるし簡単そうに見えます。しかし、実際にやってみると意外と難しいことがわかります。そこでCocoaでは少し楽をするための仕組みを導入しています。簡単に言えば、とりあえずなんでも入れておけるごみ袋を用意して、不要になった時点でごみ袋ごと捨てちゃうという方法です。このごみ袋にあたるのが、NSAutoreleasePoolというクラスです。Application Ki...
2010-07-15 14:42:30
204
原创 C++ Inline Functions
C++ Inline FunctionsIn this C++ tutorial, you will learn about Inline function, what is inline function, reason for the need of inline function, what happens when an inline function is written, ge...
2010-07-02 17:15:04
208
原创 The cocos2d Tips & Tricks
The cocos2d Tips & Tricks is a problem / solution style book of “recipes” that can help the new and experienced cocos2d developer. It is a collection of the best practices, tips and tricks from the co...
2010-07-02 14:32:34
107
原创 Declared Properties
WritabilityThese attributes specify whether or not a property has an associated set accessor. They are mutually exclusive.readwrite Indicates that the property should be treated as read...
2010-06-30 14:13:39
163
Java 同步信号使用
[code="java"]package com.hp.concurrency;public class SignalTest { public static final Object lock = new Object(); public static void main(String[] args) { new TestThread().start();...
2010-02-26 15:32:27
171
tomcat虚拟机监视
set JAVA_OPTS=%JAVA_OPTS% -Xloggc:gc.log -XX:+PrintGCDetails -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=8086 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.manag...
2010-02-26 15:29:17
108
原创 OracleのトリガでJavaの処理を起動する
OracleのトリガでJavaの処理を起動するJavaとPL/SQLを組み合わせて開発していると、「OracleのトリガでJavaの処理を起動させたいな」という局面に出会うことがあります。単にJavaで書いたプログラムを動かしたいだけならば、OracleのトリガそのものをJavaで書くということもできるし、そもそもPL/SQL で大概のことが済んでしまいます。そうではなく、特定の実行空間(...
2010-01-20 17:39:02
618
原创 日语1级阅读天天练1
次の文章を読んで、それぞれの問いに対する答えとして、最も適当なものを1.2.3.4から一つ選びなさい。 ある大学で、授業中の私語を止めさせるために、私語の多い学生に対する注意の回数を記録し、成績に反映させることにしたという。授業中の私語は成績に響くという認識を学生に持たせようというわけだ。多くの大学の教授たちは、私語に悩まされつつ、学生たちを集中させる授業の展開を研究している。この...
2009-06-17 17:17:41
1836
原创 第一期[~げ][~がち][~っぽい][~気味]
第一期按此在新窗口浏览图片我好像感冒了,有点发烧。这个季节很容易感冒。今天要学习的是四个意义相近的语法[~げ][~がち][~っぽい][~気味]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~◎~げ◎▲意思表示带有一种样子 [~そう](说话者看到他人的样子时所感觉到他人如何如何…… )注:[说话者看到他人的样子时所...
2009-03-05 20:30:40
646
原创 JAVA 简单的发送邮件方法
在很多程序做多需要有发送电子邮件的功能,以前使用java mail实现这个功能很麻烦。现在apache的下的一个子项目common-email,把这个问题大大的简化了。现在在java程序中实现发信功能,只需要短短几行代码。可以http://jakarta.apache.org/commons/email/在这个地址下载开发包和查看详细的介绍。下面介绍简单的使用。public stati...
2009-02-26 14:55:11
146
原创 java文件中serialVersionUID
一些java类中为什么需要重载 serialVersionUID 属性。在Java中,软件的兼容性是一个大问题,尤其在使用到对象串行性的时候,那么在某一个对象已经被串行化了,可是这个对象又被修改后重新部署了,那么在这种情况下, 用老软件来读取新文件格式虽然不是什么难事,但是有可能丢失一些信息。serialVersionUID来解决这些问题,新增的serialVersionUID必须定义成下...
2009-02-23 22:40:44
105
空空如也
请问java中事件机制是一种什么设计模式?
2009-05-25
TA创建的收藏夹 TA关注的收藏夹
TA关注的人