自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(7)
  • 收藏
  • 关注

原创 扩展类

所有UIView的宽高,中心点,bouns等属性 @property (nonatomic, assign) CGFloat x; @property (nonatomic, assign) CGFloat y; @property (nonatomic, assign) CGFloat centerX; @property (nonatomic, assign) CGFloat centerY;

2015-08-27 20:51:13 257

原创 常用的宏定义

NSLog会严重的消耗性能,所以判断项目的状态来决定NSLog是否运行 #ifdef DEBUG // 处于开发阶段 #define MyLog(...) NSLog(__VA_ARGS__) #else // 处于发布阶段 #define MyLog(...) #endif// RGB颜色 #define MyColor(r, g, b) [UIColor colorWithRed:(r)/255

2015-08-27 20:45:48 233

原创 版本欢迎页

思路建立UIScrollView放图片 建立UIPageControl作为页码 PageControl随着ScrollView的滑动进行更改页码 代码如下://宏定义如下 #define HWNewfeatureCount 4 #define HWColor(r, g, b) [UIColor colorWithRed:(r)/255.0 green:(g)/255.0 blue:(b)/25

2015-08-27 20:42:18 236

原创 自定义搜索栏

虽然iOS自带了SearchBar 但是觉得不咋好用. 所以自己写了个搜索栏自定义搜索框 //文本框 UITextFileld *searchBar = [[UITextField alloc]init]; searchBar.frame.size.width = 300; searchBar.frame.size.height = 30; searchBar.font = [UIFont sy

2015-08-26 11:47:54 360

原创 项目开发流程

项目开发流程做APP需要原型图: 有网页原型图,线框原型图、图片原型图原型图制作工具: 网页原型图制作工具:axure 图片原型图制作工具:PS、Sketch

2015-08-25 13:29:14 290

原创 iOS简单项目Demo-----贪吃蛇

直接代码@interface ViewController () @property(nonatomic,strong)NSMutableArray *array;@property(nonatomic,strong)NSMutableArray *viewArr; @property(nonatomic, strong)UIView *vie; @property(nonatomic)CGP

2015-08-20 14:56:12 1664

原创 如何不使用第三方变量交换两个变量的值

沼泽初学iOS 如何不使用第三方变量交换两个变量值初学 int a=27; int b=32; a=a*b; b=a/b; a=a/b; NSLog(@”变换后a=%d—b=%d”,a,b);

2015-08-20 09:56:20 304

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除