摘要: 首先创建一个工程,取名为 Xcode配置PCH 添加Pch文件, 命名为系统默认 下面开始配置路径 路径为:$(SRCROOT)/项目名称/pch文件名称.pch 到此pch 文件配置成功. 阅读全文
posted @ 2016-02-18 12:41 ¥草原狼¥ 阅读(231) 评论(0) 推荐(0) 编辑
摘要: 色盘取出点击处的颜色组成并显示在控制器的背景上。 效果图: 下面为核心源代码。 色盘的两个类i: // Created by dev on 16/2/4. // Copyright © 2016年 DLS. All rights reserved. // #import <UIKit/UIKit.h 阅读全文
posted @ 2016-02-04 18:08 ¥草原狼¥ 阅读(3713) 评论(0) 推荐(0) 编辑
摘要: 博客搬迁 阅读全文
posted @ 2016-02-03 19:09 ¥草原狼¥ 阅读(98) 评论(0) 推荐(0) 编辑
摘要: 随着智能家居的发展,蓝牙技术越发重要,尤其是蓝牙4.0.以下是我对蓝牙4.0的封装。使用时只需导入这个蓝牙类即可。DSBluetoothTool.h#import #import @protocol DSBluetoothToolDelegate @optional/*************扫描到... 阅读全文
posted @ 2016-01-06 19:15 ¥草原狼¥ 阅读(558) 评论(0) 推荐(0) 编辑
摘要: Masonry是用代码实现自动布局的第三方框架。使用之前首先要导入框架,以下是具体的代码实现。1.中心点与父视图相同#import "ViewController.h"#import "Masonry.h"@interface ViewController ()@end@implementation... 阅读全文
posted @ 2016-01-04 19:20 ¥草原狼¥ 阅读(424) 评论(0) 推荐(0) 编辑
摘要: 以下是通过UIScrollView实现的引导页。 AppDelegate.m// HandCircle//// Created by SR-APP-6 on 15/9/26.// Copyright (c) 2015年 SR-APP-6. All rights reserved.//#import ... 阅读全文
posted @ 2016-01-01 17:31 ¥草原狼¥ 阅读(676) 评论(0) 推荐(0) 编辑
摘要: 要点:在iTunes Connect创建应用程序空间Xcode选择好对应的开发证书(即和应用程序空间一致的证书)填写好相关的描述信息以及相关的联系信息iTunes Connect登录网址:https://itunesconnect.apple.com/WebObjects/iTunesConnect... 阅读全文
posted @ 2015-12-31 10:34 ¥草原狼¥ 阅读(1145) 评论(0) 推荐(2) 编辑
摘要: 可用于登陆,注册,修改密码,获得手机验证码。首先导入AFN第三方库NetWorkTool.h// NetWorkTool.h// 网络请求//// Created by 丁云飞 on 15/11/8.// Copyright © 2015年 DLS. All rights reserved.... 阅读全文
posted @ 2015-12-03 22:25 ¥草原狼¥ 阅读(249) 评论(0) 推荐(0) 编辑
摘要: 纯代码写程序可维护性高。两个类扩展。UIView+Extension.hUIView+Extension.h#import @interface UIView (Extension)@property (nonatomic, assign) CGFloat x;@property (nonatomi... 阅读全文
posted @ 2015-12-01 21:58 ¥草原狼¥ 阅读(208) 评论(0) 推荐(0) 编辑
摘要: 开发中系统提供的tabbar很难满足我们的项目需求,因此我们需要自定义。下面提供了一种简单自定义tabbar。1.storyBoard中拖拽几个页面file:///Users/dingyunfei/Desktop/屏幕快照%202015-11-30%20下午10.45.08.png2.创建Custo... 阅读全文
posted @ 2015-11-30 23:00 ¥草原狼¥ 阅读(303) 评论(0) 推荐(0) 编辑