Wx_鑫
码龄10年
关注
提问 私信
  • 博客:42,626
    42,626
    总访问量
  • 38
    原创
  • 1,362,914
    排名
  • 6
    粉丝
  • 0
    铁粉
IP属地以运营商信息为准,境内显示到省(区、市),境外显示到国家(地区)
IP 属地:美国
  • 加入CSDN时间: 2015-09-07
博客简介:

Xiaowu3816的博客

查看详细资料
个人成就
  • 获得4次点赞
  • 内容获得0次评论
  • 获得51次收藏
  • 代码片获得195次分享
创作历程
  • 35篇
    2016年
  • 7篇
    2015年
成就勋章
TA的专栏
  • 技术点
    2篇
  • 面试
    5篇
  • UI
    2篇
  • 知识点
    19篇
  • 闭包
    2篇
  • 静态库
    1篇
  • 心情
    1篇
  • 积累
    18篇
  • Storyboard
    1篇
  • 图片
    1篇
  • Git
    3篇
  • 代码管理
    3篇
  • 最近
  • 文章
  • 代码仓
  • 资源
  • 问答
  • 帖子
  • 视频
  • 课程
  • 关注/订阅/互动
  • 收藏
搜TA的内容
搜索 取消

UserInterfaceState.xcuserstate 在 Source tree 上面忽略的方法

git rm --cached ProjectFileName.xcodeproj/project.xcworkspace/xcuserdata/myUserName.xcuserdatad/UserInterfaceState.xcuserstategit commit -m "Removed file that shouldn't be tracked"
原创
发布博客 2016.09.18 ·
1815 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

Warning: Error creating LLDB target at path '...LearnCoreData.app'- using an empty LLDB target which

可以忽略的错误
原创
发布博客 2016.09.18 ·
1010 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

Mac 在终端退出命令行环境

control + c
原创
发布博客 2016.09.06 ·
3537 阅读 ·
1 点赞 ·
0 评论 ·
0 收藏

NSStirng to NSURL and NSURL to NSString

NSString to NSURLNSURL *url = [NSURL URLWithString:@"http://www.web.com"]; NSURL to NSStringNSString *myString = myURL.absoluteString;
原创
发布博客 2016.09.05 ·
433 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

Split NSString with "." or "," 分割一个带有"."或者","的 string

NSString *fileName = @"save.plist";NSArray *fileNameArray = [fileName componentsSeparatedByString:@"."];NSString *save = fileNameArray[0];NSString *plist = fileNameArray[1];
原创
发布博客 2016.08.31 ·
382 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

Git_版本

Git 命令语句git log 用来告诉历史记录git log --pretty=oneline 历史记录中只显示 id 号与提交内容commit id (版本号)是用十六进制表示的数字HEAD 表示当钱版本 HEAD^表示上一个版本 HEAD^^表示上上一个版本Git 命令语句 git reset –hard HEAD^ 也可以直接将 HEAD^ 转换成为 Commi
原创
发布博客 2016.08.30 ·
352 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

Git_创建

Git 命令## 基本使用 ## 1. pwd 用于显示当前目录 2. git init 把这个目录变成 Git 可以管理的仓库**init 之后会多出一个 .git 的目录,但目录是被隐藏的,需要用3.的命令来看。** 3. ls -ah 用来显示目录内容## 把文件添加到仓库 #### 把文件提交到仓库 ## 1. git add readme.txt 2.
原创
发布博客 2016.08.30 ·
350 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

Git_简介

来源于:廖雪峰老师的博客SVN_集中式 版本库是集中在中央服务器的,工作时使用的是自己的电脑,但是,在结束时是将自己工作的内容推送至服务器的。 集中式必须联网才能工作。Git_分布式 不需要联网 没有中央服务器 安全性能高 最重要的是有强大的分支管理功能
原创
发布博客 2016.08.30 ·
277 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

判断图片是否为空

if (UIImagePNGRepresentation(UIImage *image) != nil) { NSLog(@"image != nil"); } UIImagePNGRepresentation (image 的实例化对象)UIImagePNGRepresentation 对图片进行压缩两种实现方法 UIImageJPEGRepresentation
原创
发布博客 2016.08.30 ·
3525 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

Storyboard 本地化修改

点中 Main.storyboard 文件 找到当前位置将[Localizable Strings]文件类型改为[Interface Builder Cocoa Touch Storyboard] Command + B 之后在将[Interface Builder Cocoa Touch Storyboard]修改回[Localizable Strings] 相当于重新生成了一遍
原创
发布博客 2016.08.30 ·
1006 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

UITextField 设置键盘样式

textField.keyboardType = UIKeyboardTypeNumberPad; typedef enum { UIKeyboardTypeDefault, 默认键盘,支持所有字符 UIKeyboardTypeASCIICapable, 支持ASCII的默认键盘 UIKeyboardTypeNumbersAndPunctuation, 标准电话键盘,支持+*#
转载
发布博客 2016.08.25 ·
2199 阅读 ·
0 点赞 ·
0 评论 ·
1 收藏

使用 Storyboard 用到的问题

问题: Application tried to push a nil view controller on target UINavigationController: 0x7b98940.原因: 因为在使用 Storyboard 的时候,self.storyboard is nil.means you didn’t initialise you master viewcontrolle
原创
发布博客 2016.08.25 ·
356 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

使用 Storyboard 用到的问题

问题: Application tried to push a nil view controller on target UINavigationController: 0x7b98940.原因: 因为在使用 Storyboard 的时候,self.storyboard is nil.means you didn’t initialise you master viewcontrolle
原创
发布博客 2016.08.25 ·
282 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

得到 NSDictionary count (个数)

key
原创
发布博客 2016.08.25 ·
1432 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

UITableView default separator color

CGContextSetRGBStrokeColor ( CGContextRef c, 224.0/255.0, 224.0/255.0, 224.0/255.0, CGFloat alpha);
原创
发布博客 2016.08.25 ·
442 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

#pragma 的使用

#pragma 最重要的两个使用 1.整理代码 2.防止编译器警告1.整理代码使用 #pragma mark - 来将代码分割成逻辑区块。2.防止编译器警告###并不是很常见 用来防止编译器或者静态分析器的警告。 通过使用#pragma clang diagnostic push/pop,你可以告诉编译器仅仅为某一特定部分的代码(最初的诊断设置在最后的pop被恢复)来忽视特定警告
原创
发布博客 2016.08.23 ·
431 阅读 ·
1 点赞 ·
0 评论 ·
0 收藏

控制台警告“"This application is modifying the autolayout engine from a background thread, which can lead”

需要打开另外一个线程中,进行 UI 更新。Swiftdispatch_async(dispatch_get_main_queue(), { // code here})Objective-cdispatch_async(dispatch_get_main_queue(), ^{ // code here});
原创
发布博客 2016.08.23 ·
356 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

Push的使用

1.最简单的使用DayTimeViewController *dayTimeVC = [[DayTimeViewController alloc] init]; [self.navigationController pushViewController:dayTimeVC animated:YES];2.Pop到根页面[self.navigationController popToRootV
原创
发布博客 2016.08.23 ·
3223 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

移除视图

Call -removeFromSuperview on viewB.view.[view.view removeFromSuperview]
原创
发布博客 2016.08.17 ·
332 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

数组中得到最大值与最小值

NSInteger colMaxNumber = [[self.colNumberArray valueForKeyPath:@"@max.intValue"] intValue];NSInteger rowMaxNumber = [[self.rowNumberArray valueForKeyPath:@"@max.intValue"] intValue];
原创
发布博客 2016.08.15 ·
365 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏
加载更多