• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
ArgenBarbie
博客园    首页    新随笔    联系   管理    订阅  订阅
上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 29 下一页
2016年9月11日
UITabBarController加载之后不显示sub view controller
摘要: 原代码: 效果: 没有显示第一个“动态”viewController。 原因: self.viewControllers中要放UINavigationController所以将 self.viewControllers = [newsVC, discoverVC, nullVC, messageVC 阅读全文
posted @ 2016-09-11 23:25 ArgenBarbie 阅读(1399) 评论(0) 推荐(0)
2016年9月7日
'NSUnknownKeyException' this class is not key value coding-compliant for the key XXX
摘要: 错误: Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[ setValue:forUndefinedKey:]: this class is not key value coding-compl 阅读全文
posted @ 2016-09-07 17:20 ArgenBarbie 阅读(205) 评论(0) 推荐(0)
NSInternalInconsistencyException: loaded the "XXXView" nib but the view outlet was not set
摘要: 运行过程中App崩溃,报错如标题。 原因: viewController的view没有绑定xib的view。 解决方法: 在File's Owner中将view与viewController的view绑定。 阅读全文
posted @ 2016-09-07 13:31 ArgenBarbie 阅读(166) 评论(0) 推荐(0)
2016年9月5日
HTTP && socket
摘要: http://blog.csdn.net/zeng622peng/article/details/5546384 1、TCP连接 手机能够使用联网功能是因为手机底层实现了TCP/IP协议,可以使手机终端通过无线网络建立TCP连接。TCP协议可以对上层网络提供接口,使上层网络数据的传输建立在“无差别” 阅读全文
posted @ 2016-09-05 20:42 ArgenBarbie 阅读(177) 评论(1) 推荐(0)
2016年9月2日
stackview
摘要: Stack View会被当成Container View。所以它是一个不会被渲染的UIView子类。它不像其他UIView子类一样,会被渲染到屏幕上。这也意味着设置其backgroundColor属性或重载drawRect:方法都不会产生任何效果。 属性: http://www.jianshu.co 阅读全文
posted @ 2016-09-02 09:40 ArgenBarbie 阅读(150) 评论(0) 推荐(0)
2016年8月31日
233. Number of Digit One *HARD* -- 从1到n的整数中数字1出现的次数
摘要: Given an integer n, count the total number of digit 1 appearing in all non-negative integers less than or equal to n. For example:Given n = 13,Return 阅读全文
posted @ 2016-08-31 23:31 ArgenBarbie 阅读(128) 评论(0) 推荐(0)
231. Power of Two 342. Power of Four -- 判断是否为2、4的整数次幂
摘要: 231. Power of Two Given an integer, write a function to determine if it is a power of two. 342. Power of Four Given an integer (signed 32 bits), write 阅读全文
posted @ 2016-08-31 23:27 ArgenBarbie 阅读(205) 评论(0) 推荐(0)
判断两个字符串相同
摘要: 判断两个字符串相同要用isEqualToString函数,只用“==”判断,结果会错误。 阅读全文
posted @ 2016-08-31 18:13 ArgenBarbie 阅读(267) 评论(0) 推荐(0)
2016年8月30日
模拟器不显示屏幕键盘
摘要: Hardware -》 Keyword 进行设置。 阅读全文
posted @ 2016-08-30 15:20 ArgenBarbie 阅读(218) 评论(0) 推荐(0)
图片填充UIImageView大小不对
摘要: http://www.2cto.com/kf/201507/412894.html UIView的contentMode属性: 默认为Scale To Fill,会保留view的比例,不会完全按照设定的高度和宽度。 可以改为Aspect Fill。但它是把ImageView的大小根据图片大小进行调整 阅读全文
posted @ 2016-08-30 14:23 ArgenBarbie 阅读(294) 评论(0) 推荐(0)
上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 29 下一页
博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3