• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
ArgenBarbie
博客园    首页    新随笔    联系   管理    订阅  订阅
2016年8月22日
string转char*
摘要: string s; s.c_str() 阅读全文
posted @ 2016-08-22 19:42 ArgenBarbie 阅读(152) 评论(0) 推荐(0)
164. Maximum Gap *HARD* -- 无序数组找出排序后连续元素的最大间隔
摘要: Given an unsorted array, find the maximum difference between the successive elements in its sorted form. Try to solve it in linear time/space. Return 阅读全文
posted @ 2016-08-22 18:07 ArgenBarbie 阅读(299) 评论(0) 推荐(0)
viewDidLoad && loadView
摘要: viewDidLoad 方法在controller加载了相关的views后被调用,而不论这些views存储在nib文件里还是在loadView函数中生成。 loadView 方法在控制器的 view 为 nil 的时候被调用。 此方法用于以编程的方式创建 view 的时候用到。loadView 是使 阅读全文
posted @ 2016-08-22 14:43 ArgenBarbie 阅读(209) 评论(0) 推荐(0)
给文本标签UILabel添加长按复制功能
摘要: http://www.111cn.net/sj/iOS/104236.htm http://blog.csdn.net/lrenjun/article/details/12582927 自定义一个可复制的标签类,使其能够响应Touch事件并显示复制菜单。 阅读全文
posted @ 2016-08-22 13:42 ArgenBarbie 阅读(1202) 评论(0) 推荐(0)
函数与方法(方法前 + - 号)
摘要: 方法:方法是Objective-C独有的一种结构,只能在Objective-C中声明、定义和使用,C语言不能声明、定义和使用。 1、类方法以+号开头,对象方法以-号开头 + (void) init; // 类方法 - (void) show; // 对象方法 2、在@interface和@end之间 阅读全文
posted @ 2016-08-22 09:21 ArgenBarbie 阅读(309) 评论(0) 推荐(0)
博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3