随笔分类 -  oc学习笔记

上一页 1 2 3 4 5 6 7 8 9 10 下一页

iOS 设置导航栏透明
摘要://视图将要出现,隐藏导航栏 -(void)viewWillAppear:(BOOL)animated { [super viewWillAppear:animated]; [self.navigationController setNavigationBarHidden:YES]; } 阅读全文

posted @ 2018-09-18 20:07 高彰 阅读(5176) 评论(0) 推荐(0)

iOS 字典转数组
摘要:为了更加方便的从多重字典里嵌套数组在这里记录下解套的方法,就可以按嵌套的多少慢慢解了! 数组里面嵌套了字典,如图 你就这样 阅读全文

posted @ 2018-09-07 15:46 高彰 阅读(2549) 评论(0) 推荐(0)

ios app跳转微信小程序
摘要:具体流程: 登陆微信开放平台 管理中心-创建移动应用-等待审核通过 审核通过后-查看应用(拉到最下面)-关联小程序信息-查看关联-关联小程序-小程序账号持有者通过申请 到这一步就可以开始移动开发了 👉这里只介绍iOS SDK接入开发全流程 原文链接:https://open.weixin.qq.c 阅读全文

posted @ 2018-06-26 11:55 高彰 阅读(4179) 评论(0) 推荐(0)

macOS NSButton(上-属性)(UIbutton用于iOS)大全,欢迎大家提建议持续完善
摘要:- (void)viewDidLoad { [super viewDidLoad]; NSLog(@"Hello world!"); // 设置按钮 [self setbutton]; } -(void)setbutton{ NSButton *button = [[NSButton alloc]i 阅读全文

posted @ 2018-05-26 16:25 高彰 阅读(1512) 评论(0) 推荐(0)

iOS 审核注意事项以及获取设备信息资料
摘要:https://blog.csdn.net/Reborn_Tai/article/details/79245498 我不想重复造轮子 阅读全文

posted @ 2018-04-28 10:33 高彰 阅读(144) 评论(0) 推荐(0)

iOS 上架小问题Alpha通道
摘要:https://blog.csdn.net/qq_28142539/article/details/51127560 阅读全文

posted @ 2018-04-27 11:41 高彰 阅读(145) 评论(0) 推荐(0)

iOS导航栏左边按钮图像变形
摘要:UIView *iconBgView = [[UIView alloc]initWithFrame:CGRectMake(0, 0, 25, 25)]; UIButton * backbtn =[UIButton addBtnImage:@"backimg" AndFrame:CGRectMake( 阅读全文

posted @ 2018-04-17 15:50 高彰 阅读(797) 评论(0) 推荐(0)

tableview简单例子和简单遍历
摘要:Instruction_set_list.h #import <UIKit/UIKit.h> @interface Instruction_set_list : UIViewController @property (strong,nonatomic)UITableView *tableviewIn 阅读全文

posted @ 2018-03-19 09:46 高彰 阅读(500) 评论(0) 推荐(0)

字符串的方法集合
摘要:NSString *last1 = [str1 substringToIndex:str1.length-2];//截去字符串结尾 NSString *last2 = [str2 substringFormIndex:str2.length-2];//截取字符串结尾 阅读全文

posted @ 2018-02-23 17:29 高彰 阅读(189) 评论(0) 推荐(0)

iOS tableview下拉刷新
摘要:- (void)viewDidLoad { [super viewDidLoad]; // 创建tableview [self setTableView]; [self setupRefresh]; } // 下拉刷新 - (void)setupRefresh { NSLog(@"setupRefresh -- 下拉刷新"); ... 阅读全文

posted @ 2018-02-06 16:08 高彰 阅读(1688) 评论(0) 推荐(0)

iOS 设置按钮圆切角(4个角都可随意设置)
摘要:https://yq.aliyun.com/ziliao/4779 设置按钮的4个角:左上:UIRectCornerTopLeft左下:UIRectCornerBottomLeft右上:UIRectCornerTopRight右下:UIRectCornerBottomRight 例子代码: UIBu 阅读全文

posted @ 2018-02-06 11:30 高彰 阅读(6201) 评论(0) 推荐(0)

iOS 自定义弹框
摘要:https://www.jianshu.com/p/b9bba621b295 阅读全文

posted @ 2018-02-05 17:58 高彰 阅读(178) 评论(0) 推荐(0)

字符串或者int转十六进制
摘要://开始传输config文件 -(void)Qlife_sendConfigStart:(NSString *)fileData{ //读取文件 NSError *error = nil; NSString *str = [NSString stringWithContentsOfFile:fileData encoding:NSUTF8StringEncoding er... 阅读全文

posted @ 2018-01-31 15:19 高彰 阅读(2847) 评论(0) 推荐(0)

拖动tableView时收起键盘
摘要:_tableview = [[UITableView alloc]initWithFrame:CGRectMake(0, 94,fDeviceWidth,fDeviceHeight-108) style:UITableViewStylePlain]; _tableview.delegate =self;//写了这两句话哟调用delegate*/ _tableview.dataS... 阅读全文

posted @ 2018-01-24 16:09 高彰 阅读(288) 评论(0) 推荐(0)

iOS点击空白处或点击背景收起键盘
摘要:- (void)viewDidLoad{ [super viewDidLoad]; //添加手势 UITapGestureRecognizer *tap1 = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(viewTapped:)]; tap1.cancelsTouchesInView = NO; ... 阅读全文

posted @ 2018-01-17 17:08 高彰 阅读(1673) 评论(0) 推荐(0)

iOS11 tableView下拉刷新问题
摘要:- (void)viewDidLoad { [super viewDidLoad]; 。。。。放这里!!! } 阅读全文

posted @ 2018-01-17 15:59 高彰 阅读(744) 评论(0) 推荐(1)

iOS Slider使用
摘要:@property (nonatomic,strong)UISlider *VolSlider; _VolSlider=[[UISlider alloc]initWithFrame:CGRectMake(fDeviceWidth/4,fDeviceHeight*3/4-64,fDeviceWidth/2,30)]; _VolSlider.minimumValue=0.0; ... 阅读全文

posted @ 2018-01-16 10:56 高彰 阅读(1196) 评论(0) 推荐(0)

2018~2023常用网站 图片处理 API接口
摘要:在线PS:https://www.photopea.com/ 图片处理: http://icon.wuruihong.com/icon/iZduKVew#/ios 图标工厂 ios图标:https://appicon.co/#app-icon ios启动图:https://www.onlinedo. 阅读全文

posted @ 2018-01-04 18:10 高彰 阅读(277) 评论(0) 推荐(0)

iOS判断当前时间是否处于某个时间段内
摘要:援引:http://www.cnblogs.com/wb145230/p/5266627.html 阅读全文

posted @ 2017-12-29 13:53 高彰 阅读(1625) 评论(0) 推荐(0)

iOS 页面跳转和返回,持续编写
摘要:如果使用导航 第一个按钮方法: [self.navigationController pushViewController:secondVC animated:YES]; 第二个按钮方法: [self.navigationController popViewControllerAnimated:YE 阅读全文

posted @ 2017-12-28 14:48 高彰 阅读(903) 评论(0) 推荐(0)

上一页 1 2 3 4 5 6 7 8 9 10 下一页

导航