![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
ios
zhaiqingchao
这个作者很懒,什么都没留下…
展开
-
-[NSDecimalNumber isEqualToString:]: unrecognized selector sent to instance
从网络上下的数据解析成一个字典后 按key取字典里的字符串赋值给一个lable然后就报这个崩溃错误_ageText.text= self.age ;经过查阅别人的博客 知道这样写是很容易崩溃的应该这么写_ageText.text= [(NSNumber*)self.age stringValue] ;或者这么写_ageTex转载 2013-01-29 14:58:30 · 1175 阅读 · 0 评论 -
对于UITableViewStyleGrouped类型的UITableView的背景色设置问题
在iOS6中,对于UITableViewStyleGrouped类型的UITableView,通过直接修改继承自UIView的backgroundColor属性的方法来设置UITableView的背景色无效。比如,在AppDelegate中设置窗口的颜色为淡黄色self.window.backgroundColor = [UIColor colorWithRed:1.00f green转载 2013-01-29 14:54:08 · 474 阅读 · 0 评论 -
ios 方面总结的相关知识(1)
iphone开发 NavBar+TarBar1 改变NavBar颜色:选中Navigation Bar 的Tint属性。选中颜色。2 隐藏“back”按钮: self.navigationItem.hidesBackButton = YES;3 隐藏"NavBar" : self.navigationController.navigationBarHidden =转载 2013-01-29 15:17:33 · 374 阅读 · 0 评论 -
ios 方面总结的相关知识(2)
数组相关:17 判断数组中是否存在某元素:BOOL isValue=[keyArray containsObject:@"aaa"];18.1把字符串按逗号隔开,并保存到数组:NSArray *keyArray=[[NSArray alloc] init];keyArray=[@"冬瓜,西瓜,南瓜,苦瓜,丝瓜" componentsSeparatedByString:@","转载 2013-01-29 15:30:34 · 745 阅读 · 0 评论 -
UIWebView 使用
UIWebView加载的html里,加载工程文件的图片 第一种方法: 在info.plist里面定义个URL schema比如叫 youapp,那么路径就写成youapp://test.png可以参照http://iphonedevelopertips.com/cocoa/launching-your-own-application-via-a-cu转载 2013-02-06 11:25:14 · 364 阅读 · 0 评论 -
UIsearchBar背景透明,去掉背景,自定义背景
seachBar=[[UISearchBar alloc] init];//修改搜索框背景seachBar.backgroundColor=[UIColor clearColor];//去掉搜索框背景//1.[[searchbar.subviews objectAtIndex:0]removeFromSuperview];//2.for (U转载 2013-02-24 16:39:13 · 617 阅读 · 0 评论 -
UIButton sender参数
-(IBAction) buttonClick:(id)sender //sender参数,表示接受哪个按钮消息{ UIButton *button = (UIButton *)sender; //参数id是一个通用内型,此处将其强制转换成UIButton内型 //每个button都有唯一的tag,系统默认陪标示用的,是一个整数 NSStri转载 2013-04-25 10:32:24 · 872 阅读 · 0 评论