摘要: mengweihttp://www.dreamingwish.com/ 阅读全文
posted @ 2013-06-13 09:59 xiaoxiaoxigua 阅读(147) 评论(0) 推荐(0)
摘要: http://www.raywenderlich.com/tutorials 阅读全文
posted @ 2013-06-07 11:45 xiaoxiaoxigua 阅读(145) 评论(0) 推荐(0)
摘要: - (UIImage *)getCroppedImage { CGRect imageRect = CGRectMake(10,10,100,100); UIImage *ima=[UIImage imageNamed:@"2.jpg"]; CGImageRef imageRef = CGImageCreateWithImageInRect([ima CGImage], imageRect); UIImage *result = [UIImage imageWithCGImage:imageRef scale:1.0 ... 阅读全文
posted @ 2013-06-06 16:52 xiaoxiaoxigua 阅读(181) 评论(0) 推荐(0)
摘要: 1、visio 用这个画图,感觉很专业。2、mindManager 听说不错,有时间要用一下3、justinmind justinMind是由西班牙JustinMind公司出品的原型制作工具,可以输出Html页面。与目前主流的交互设计工具axure,Balsamiq Mockups等相比,Justinmind Prototyper更为专属于设计移动终端上app应用 阅读全文
posted @ 2013-05-31 16:15 xiaoxiaoxigua 阅读(140) 评论(0) 推荐(0)
摘要: 简单的一个属性实现label每个字的颜色都不相同,现在只是提供静态的,就是要提供一个范围 NSString *df=@"this is test!"; NSMutableAttributedString *attriString =[[NSMutableAttributedStringalloc] initWithString:df]; NSRange range2=[df rangeOfString:@"is"]; NSArray *colors=[NSArrayarrayWithObjects:[UIColorredColor],[UIColorre 阅读全文
posted @ 2013-05-31 14:28 xiaoxiaoxigua 阅读(707) 评论(0) 推荐(0)
摘要: btn.showsTouchWhenHighlighted=yes 阅读全文
posted @ 2013-05-31 11:28 xiaoxiaoxigua 阅读(139) 评论(0) 推荐(0)
摘要: iphone sdk版本宏2012-05-29 22:41:51|分类:ios|字号订阅1234// 当前系统支持的最小版本__IPHONE_OS_VERSION_MIN_REQUIRED// 当前系统支持的最大版本__IPHONE_OS_VERSION_MAX_ALLOWED比如用 iPhone OS SDK 3.1.2 编译的程序12__IPHONE_OS_VERSION_MIN_REQUIRED == __IPHONE_3_0__IPHONE_OS_VERSION_MAX_ALLOWED == __IPHONE_3_1这时,我们可以在程序中使用下面类似的 $ifdef 语句:12345# 阅读全文
posted @ 2013-05-27 18:02 xiaoxiaoxigua 阅读(1681) 评论(0) 推荐(0)
摘要: - (UIImage *) createImageWithColor: (UIColor *) color{ CGRect rect = CGRectMake(0.0f,0.0f,1.0f,1.0f);  UIGraphicsBeginImageContext(rect.size); CGContextRef context =UIGraphicsGetCurrentContext(); CGContextSetFillColorWithColor(context, [colorCGColor]); CGContextFillRect(context, rect); UIImage *the 阅读全文
posted @ 2013-05-14 11:00 xiaoxiaoxigua 阅读(214) 评论(0) 推荐(0)
摘要: 在UITableView中,经常有很多表单需要输入,有的表单比较靠下,一点击输入时键盘就会弹出,弹出有时候会盖住输入框,那怎么办呢?调用下面的方法,当然你输入的UITextField要有delegate = self。 当前的viewController要实现UITextFieldDelegate。-(void)textFieldDidBeginEditing:(UITextField*)textField{[self.tableViewsetContentOffset:CGPointMake(0,70)animated:YES]; }-(BOOL)textFieldShouldReturn: 阅读全文
posted @ 2013-05-10 17:47 xiaoxiaoxigua 阅读(247) 评论(0) 推荐(0)
摘要: -(int)sinaCountWord:(NSString *)s{ int i,n=[s length],l=0,a=0,b=0; unichar c; for(i=0;i<n;i++){ c=[s characterAtIndex:i]; if(isblank(c)){ b++; }else if(isascii(c)){ a++; }else{ l++; } } if(a==0 && l==0) return 0; return ... 阅读全文
posted @ 2013-05-10 13:47 xiaoxiaoxigua 阅读(383) 评论(0) 推荐(0)