![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
iOS
nashio
这个作者很懒,什么都没留下…
展开
-
xcode 识别不了设备
原创 2014-04-14 17:27:46 · 1017 阅读 · 0 评论 -
自定义单元格显示多行文本信息不完整
最近用XIB做了一个自定义的Cell,上面拖放了一个UILabel控件,该控件继承VerticallyAlignedLabel然后显示@“test a long message.............”的长文本时,发现显示信息不完整,经过不断调试,发现是字体大小没有一致解决方法如下:1. 在XIB的自定义cell中,设置当前UILabel控件的Font属性为一个值,如System 1原创 2014-04-01 13:58:04 · 980 阅读 · 0 评论 -
ios7中UITextField的placeholder内容始终是顶部对齐
解决方法1. 定义一个UITextField的子类UISubTextField2.重载- (void)drawPlaceholderInRect:(CGRect)rect方法实现如下- (void)drawPlaceholderInRect:(CGRect)rect{ [self.placeHolderTextColor setFill]; CGRect pl原创 2014-03-25 13:00:47 · 1784 阅读 · 0 评论 -
CGContextSetFillColorWithColor invalid context 0x0
今天在执行以下代码的时候,出现了原创 2014-04-24 17:22:36 · 1208 阅读 · 0 评论 -
UIAlertView 弹出自定义视图里,位置不正确
我用一个Xib创建了一个自定义的ViewCustomPickerView *alert = [[[NSBundlemainBundle] loadNibNamed:@"CustomPickerView"owner:selfoptions:nil]objectAtIndex:0];原创 2014-04-25 15:21:54 · 1062 阅读 · 0 评论 -
unexpected token after objective c string 和@ end must be appear in an objective c context 错误
今天在调试的时候,出现了原创 2014-06-06 16:34:02 · 5421 阅读 · 0 评论 -
xcode 6 exporting ipa 提示 Your account already has a valid iOS distribution certificate 的另一种解决方法
xcode 6 exporting ipa 提示 Your account already has a valid iOS distribution certificate 的另一种解决方法,xbuild + xrun命令打出ipa包原创 2015-01-16 09:07:21 · 5806 阅读 · 0 评论