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/



发表评论

You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

CAPTCHA image