http://fann.im/blog/2012/05/23/hide-extra-separators-bellow-uitableview/

UITableViewStylePlain 样式下的 UITableView 如果显示分割线,就会在 tableView 下显示额外的空白 cell 和分割线。在 SO 上发现一个小技巧来解决这个问题 Eliminate Extra separators below UITableView – in iphone sdk?

1
2
3

UIView *v = [[UIView alloc] initWithFrame:CGRectMake(0, 0, self.tableView.width, 1)];
v.backgroundColor = [UIColor whiteColor];
[self.tableView setTableFooterView:v];

继续阅读..

admin on August 19th, 2013

Bind with a specific instance of NSValueTransformerMyCustomValueTransformer *valueTransformer =[[MyCustomValueTransformer alloc] init];NSMutableDictionary *bindingOptions = [NSMutableDictionary dictionary];[bindingOptions setObject: valueTransformer forKey:@"NSValueTransformer"];[myControl  bind:@"value"  toObject:arrayController withKeyPath:@"selection.optionValue"  options:bindingOptions];

继续阅读..

http://xcodev.com/584.html
http://xcodev.com/761.html
xib文件性能  http://xcodev.com/373.html
LBS地图纠错  http://xcodev.com/131.html
Category  macor    http://xcodev.com/918.html

继续阅读..

admin on August 6th, 2013

1.+(void)initialize { if (self == [MyCustomClass class]) { // do your stuff here! }}
2. dont call [NSNotificationCenter removeObserver:] excepet dealloc
3.
Handy constants
Another element that is easily overlooked, but can make code and life so much easier: Convenience Constants. Take some examples:
CGPointZero
CGRectZero
CGSizeZero
CGRectInfinite – mostly used in Core Image contexts
CGRectNull – not equal to CGRectZero, returned by e.g. [...]

继续阅读..

admin on July 20th, 2013

open project .xcode file, delete  project.xcworkspace file,then Ok!

继续阅读..

admin on July 18th, 2013

继续阅读..

admin on July 13th, 2013

2012-01-19 20:31:37.864 ToDoSync[3455:fb03] CoreData: sql: SELECT 0,
t0.Z_PK, t0.Z_OPT, t0.ZCOMPLETE, t0.ZCREATEDAT, t0.ZNOTE, t0.ZTITLE FROM
ZTASK t0 ORDER BY t0.ZCREATEDAT LIMIT 1
2012-01-19 20:31:37.875 ToDoSync[3455:fb03] CoreData: annotation: sql
connection fetch time: 0.0742s
2012-01-19 20:31:37.875 ToDoSync[3455:fb03] CoreData: annotation: total
fetch execution time: 0.0784s for 1 rows.

继续阅读..

admin on July 9th, 2013

H:     Horizontal Orirntation.Default Oritation is Hirizontal so The H: Can bei omitted.
V:    Vertaical Oritation
|      Indicates the superCiew
-  Statdard space
-N-   an N-sized spacing
[view] indicates a subview
==,>=,<=  Relation opreations.Can only be used in size constaints.
@N  Constaints priority. Can only be used in size constaits. Default priorirt is 1000.

继续阅读..

http://stackoverflow.com/questions/6617472/why-does-valueforkey-on-a-uitextfield-throws-an-exception-for-uitextinputtraits
swizzled valueForKey: for every class implementing thetextInputTraits method. If the key is a UITextInputTraits key, then call valueForKey: on the object’s textInputTraits instead of the object itsel

继续阅读..

admin on July 3rd, 2013

I modify project  .pch  header file,then rebuild ,error disappers.

继续阅读..