admin on January 23rd, 2014

此处不逢君
思念中逢君
天地无限大
自有逢君时

继续阅读..

admin on July 5th, 2013

you connect  any UI Controll like a UITextFiled  IBOutlet var name myTextFiled ,select strong qualifier , when you remove  myTextFiled superview from controller’s view ,  the myTextFiled cannot release Immediately because controller has a strong refrence.if  myTextFiled qualifier is weak,when its superview is removed,myTextFiled can be release.

继续阅读..

admin on June 29th, 2013

1.NSTimer  /UI Update  /PerformSelect:AfterDelay  Run In Main Loop
2.dont use performSelectorInBackgroud,It May Cause Memery Leak

继续阅读..

admin on July 4th, 2010

CoreText example: Column Layout (correctly inverted text)

继续阅读..

admin on July 1st, 2010

免费iPad应用软件推荐
理解iPhone项目的BaseSDK和DeploymentTarget含义
image process
http://vocaro.com/trevor/blog/2009/10/12/resize-a-uiimage-the-right-way/
Rendering PDF is easier than you thought
Drawing on UIImages

继续阅读..

admin on June 28th, 2010

WPTouch
iPhone中将字符串转化为方法的方案 
 
1. NSString *strSelector;
2. SEL sel = NSSelectorFromString(strSelector);
3. if ([self respondsToSelector:sel])
4. ret = [self performSelector:sel withObject:(id)state];
5.
phone开发中切换两个sub view的层次关系方法 
 
假设这两个子视图的tag分别为1000,和1001,则代码如下:
NSInteger index1 = [[parentView subviews] indexOfObject:[parentView viewWithTag:1000]];
NSInteger index2 = [[parentView subviews] indexOfObject:[parentView viewWithTag:1001]];
[parentView exchangeSubviewAtIndex:index1 withSubviewAtIndex:index2];
上传图片到服务器
the iPhone Gradient Buttons project
Categories as Stylesheets
good site
http://akosma.com/2010/06/03/objective-c-categories-as-stylesheets/

继续阅读..

admin on June 26th, 2010

Now since you have a custom built button, u can assign any title/image as you like.
In order to remove the navigation bar from showing up when you go back, in the ‘callview’ method define an instance of the application delegate where the navigationcontroller is instantiated and assign its navigationBar’s hidden property as TRUE. Something like [...]

继续阅读..

admin on June 26th, 2010

for (Shop *shop in self.shops) {
ShopAnnotation *ann = [ShopAnnotation annotationWithShop:shop];
[self.mapView addAnnotation:ann];
CGPoint annPoint = [self.mapView convertCoordinate:ann.coordinate
toPointToView:self.mapView];
if (annPoint.x > 0.0 && annPoint.y > 0.0 &&
[...]

继续阅读..

admin on June 25th, 2010

http://duivesteyn.net/2010/01/16/iphone-custom-tabbar-background-image/
OBGradientView is a very simple UIView subclass that wraps the functionality of CAGradientLayer in a view. It exposes all of the layer’s gradient-related properties (colors, locations, startPoint, endPoint, and type) as its own properties. Calls of the setters and getters are simply forwarded to the underlying CAGradientLayer so you can use the same syntax
Customizing UINavigationBar
iPhone [...]

继续阅读..

admin on June 20th, 2010

http://uxebu.com/blog/2010/02/15/eventninja-a-mobile-cross-platform-app/#more-934
http://randymcmillan.net/iwebkitphonegap

继续阅读..