ITeye博客

晨鸟

chenniaoc · 共 26 篇文章

Client-SIde creates download file without connecting server

https://github.com/dcneiner/Downloadify

2012-08-28 00:38 · JS相关 · 评论(0)

property “assign” and “retain” for delegate

1 Answer active oldest votes up vote 13 down vote accepted The documentation says: Retaining an object creates a strong reference, and an object cannot be deallocated until all of its strong references are released. If two objects retain each other, neither object ever gets deallocated because the …

2012-06-25 01:11 · iphone development · 评论(0)

如何从一个方法中返回来自于集合的对象

- (ImageScrollView *)dequeueRecycledPage { ImageScrollView *page = [recycledPages anyObject]; if (page) { [[page retain] autorelease]; [recycledPages removeObject:page]; //注释1 } return page; } 上述方法返回一个从NSmutableSet获得的一个任意对象。 需要指出的是,这个对象从集合中取得以后,将会在最后执行一次remove操作。 如果去掉注释1的代码块的话,将会造成BAD ACCESS异常。 原因:…

2012-06-25 00:20 · iphone development · 评论(0)

类似Tweetie那种拽下来就refresh的代码

http://github.com/enormego/EGOTableViewPullRefresh

2012-06-22 12:28 · iphone development · 评论(0)

difference between frame and bounds Property

bounds The bounds rectangle, which describes the view’s location and size in its own coordinate system. @property(nonatomic) CGRect bounds Discussion On the screen, the bounds rectangle represents the same visible portion of the view as its frame rectangle. By default, the origin of the bounds rect…

2012-06-17 21:55 · iphone development · 评论(0)

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 · iphone development · 评论(0)

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 the view which is expected to display into TabView straightly. 2,Instead of 1,wrap the view by a Navigat…

2012-06-16 13:39 · iphone development · 评论(0)

关于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] initWithFrame:frame]; label.bounds = CGRectMake(50, 50, 150, 150); 效果图如下:label的frame变成多少了呢?自己动手实验一下吧!

2012-06-16 12:03 · iphone development · 评论(0)

从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,_ + 匹配前面的 \w 一次或多次 @ 匹配 @ 字符 \w 匹配 A-Z,a-z,0-9,_ + 匹配前面的 \w 一次或多次 ([-.]\w+)* * 匹配前面的 ([-.]\w+) 零次或…

2010-09-12 23:57 · javaEE · 评论(0)

Enum常量放入NSArray的方法

ypedef enum { UIViewAnimationCurveEaseInOut, UIViewAnimationCurveEaseIn = 0, UIViewAnimationCurveEaseOut, UIViewAnimationCurveLinear } UIViewAnimationCurve; This result of this would be: UIViewAnimationCurveEaseInOut is 0; UIViewAnimationCurveEaseIn is 0; UIViewAnimationCurveEaseOut is 1; and so on…

2010-09-07 23:14 · iphone development · 评论(0)

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 string object"; In order to display the current value of a string object using NSLog, simply reference the strin…

2010-09-02 11:36 · iphone development · 评论(1)

What is Core Data?

Path to Success The 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 typically follow this path: Start by reading the overview in Core Data Basics (in Core Data Programmin…

2010-08-31 22:03 · iphone development · 评论(0)

Eclipse快捷键大全(转载)

Ctrl+1 快速修复(最经典的快捷键,就不用多说了) Ctrl+D: 删除当前行 Ctrl+Alt+↓ 复制当前行到下一行(复制增加) Ctrl+Alt+↑ 复制当前行到上一行(复制增加) Alt+↓ 当前行和下面一行交互位置(特别实用,可以省去先剪切,再粘贴了) Alt+↑ 当前行和上面一行交互位置(同上) Alt+← 前一个编辑的页面 Alt+→ 下一个编辑的页面(当然是针对上面那条来说了) Alt+Enter 显示当前选择资源(工程,or 文件 or文件)的属性 Shift+Enter 在当前行的下一行插入空行(这时鼠标可以在当前行的任一位置,不一定是最后) Shift+Ctrl+E…

2010-08-18 11:11 · java基础 · 评论(0)

Iphone开发常用软件

粒子特效:particleillusion

2010-07-19 16:41 · iphone development · 评论(0)

iPhone にインストールされているフォント一覧

タイトルの通り、iPhone にインストールされているフォントをフォントファミリー毎に書き出してみた。 FontViewer と、Fonts をインストールして確認しました。 American Typewriter * AmericanTypewriter * AmericanTypewriter-Bold AppleGothic * AppleGothic Arial * ArialMT * Arial-BoldMT * Arial-ItalicMT * Arial-BoldItalicMT Arial Rounded MT Bold * ArialRoundedMTBold Arial …

2010-07-19 13:21 · iphone development · 评论(0)