• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
 






小等

 
 

Powered by 博客园
博客园 | 首页 | 新随笔 | 联系 | 订阅 订阅 | 管理
上一页 1 2 3 4 下一页

2017年12月19日

一个标签功能 实现点击变色 限制数量
摘要: NSString *advantageStr;//接收亮点标签 NSArray *JobTagArry;//从后台返回的标签 NSMutableArray *selectArr;//接收点击的btn 进去没有标签 获取后台给的标签 CGFloat w = ([UIScreen mainScreen] 阅读全文
posted @ 2017-12-19 19:11 小等 阅读(198) 评论(0) 推荐(0)
 
获取手机定位 在需要时候 提示
摘要: 先添加Corelocation.framework框架 在info.plist中添加 Privacy - Location When In Use Usage Description string -需要你的同意 才能访问位置 在APPdelegate.m中 这里 启动的时候提示一次 #import 阅读全文
posted @ 2017-12-19 18:54 小等 阅读(360) 评论(0) 推荐(0)
 

2017年12月14日

iOS 语音转文字
摘要: 要求语音转文字 从网上找到一些代码 自己改了一下留存 目前能满足我的要求 其他跟着改进 首先加入框架XCode8以上,只有它之后的编译器里才有Speech.framework 在info.plist文件中添加 Privacy - Speech Recognition Usage Descriptio 阅读全文
posted @ 2017-12-14 16:05 小等 阅读(558) 评论(0) 推荐(0)
 

2017年12月11日

textView 简单应用
摘要: { UITextView *ownTextView;// 自我介绍 UILabel *ownLabel; UILabel *numLabel; } 先添加UITextViewDelegate ownTextView = [[UITextView alloc]initWithFrame:CGRectM 阅读全文
posted @ 2017-12-11 18:44 小等 阅读(91) 评论(0) 推荐(0)
 
键盘 应用
摘要: 第一个 监听键盘弹出高度 避免遮挡页面 网上找的 存起来 viewDidLoad里 // 监听键盘通知 [[NSNotificationCenter defaultCenter]addObserver:self selector:@selector(keyboardWillShow:) name:U 阅读全文
posted @ 2017-12-11 18:36 小等 阅读(157) 评论(0) 推荐(0)
 

2017年12月5日

UITextField.placeholder 颜色修改
摘要: 一种 TextField.attributedPlaceholder = [[NSAttributedString alloc] initWithString:TextField.placeholder attributes:@{NSForegroundColorAttributeName: [UI 阅读全文
posted @ 2017-12-05 11:39 小等 阅读(118) 评论(0) 推荐(0)
 

2017年11月30日

Masonry 中布局的一个小坑
摘要: 标题 和消息一样的布局 怎么会少一块 好烦恼 第一次用masonry 原先都没有第三方布局 在消息页面也没有问题 找了半天原因 结果加一行就搞定了 留下深刻教训 阅读全文
posted @ 2017-11-30 10:47 小等 阅读(153) 评论(0) 推荐(0)
 

2017年11月22日

随意写点常用的小代码 随时添加
摘要: //点击空白处事件 UITapGestureRecognizer *tapGestureRecognizer = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(keyboardHide:)]; //设置成NO 阅读全文
posted @ 2017-11-22 17:25 小等 阅读(157) 评论(0) 推荐(0)
 

2017年11月16日

一个小封装 能在view pushVC
摘要: #import <UIKit/UIKit.h> @interface UIView (ViewController) - (UIViewController *)viewController; @end .m中 #import "UIView+ViewController.h" @implement 阅读全文
posted @ 2017-11-16 18:41 小等 阅读(172) 评论(0) 推荐(0)
 

2017年11月8日

tableView 中cell 的一些小代码
摘要: 遇见就记 每天进步一些 cell分割线 顶头 去尾 TableView.layoutMargins = UIEdgeInsetsZero TableView.separatorInset = UIEdgeInsetsZero; TableView.tableFooterView = [[UIView 阅读全文
posted @ 2017-11-08 18:58 小等 阅读(167) 评论(0) 推荐(0)
 
上一页 1 2 3 4 下一页