![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
iOS
bigliang999
这个作者很懒,什么都没留下…
展开
-
真机调试问题:Unable to find a team with the given Team ID
Unable to find a team with the given Team ID '******' to which you belong. Please contact Apple Developer Program Support.这个问题往往是下载运行了其他人的项目造成的。这个 Team ID也是属于项目原主人的。解决方法: .xcodeproj显示包内容,-》原创 2015-11-26 15:30:32 · 1687 阅读 · 0 评论 -
iOS 限制UITextField的输入长度
主要是实现UITextField的代理方法,如下://限制输入框的内容- (BOOL)textField:(UITextField *)textField shouldChangeCharactersInRange:(NSRange)range replacementString:(NSString *)string{ //限制输入三位 if (range.location <原创 2015-11-27 09:22:42 · 534 阅读 · 0 评论 -
SDWebImage清除某一特定url的图片缓存
项目中用到了这一功能,记录一下。/** * SDWebImage 删除特定url图片的缓存 */+ (void)clearCacheWithUrl:(NSString *)url{ [[SDImageCache sharedImageCache]removeImageForKey:url];}原创 2016-01-13 17:55:16 · 6875 阅读 · 0 评论 -
修改navigationBar的title颜色
以前都是用navigationItem.titleView这个属性来自定义title设置颜色。后来发现了这条属性来改变title颜色,代码如下:self.navigationBar.titleTextAttributes = [NSDictionary dictionaryWithObject:[UIColor whiteColor] forKey:NSForegroundColorAtt原创 2016-01-12 18:19:27 · 657 阅读 · 0 评论 -
iOS去除网络请求到的数据的null值
请求接口获取到的数据包涵null值,处理的时候遇到了问题。在网上搜到了几种解决办法,自己尝试了两种都可以达到目的,在这里记录一下。第一种方法是使用分类给字典添加一个类方法,将字典中的null值全部替换为空字符串,代码如下:.h文件代码:#import @interface NSDictionary (DeleteNull)+(id)changeType:(id)myObj;原创 2015-12-18 13:37:50 · 9805 阅读 · 2 评论 -
隐藏状态栏
首先看info.plist有一项叫View controller-based status bar appearance1.不添加这一项的时候隐藏状态栏方法如下:- (BOOL)prefersStatusBarHidden{ return YES;}2.在info.plist添加View controller-based status bar appearance原创 2016-07-14 17:10:56 · 291 阅读 · 0 评论