初学
沼泽爬行者
13年步入IT行业,主要接触JAVA、.net、对HTML+CSS略懂。
15年步入iOS,主要做项目类开发
展开
-
如何不使用第三方变量交换两个变量的值
沼泽初学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 · 312 阅读 · 0 评论 -
自定义搜索栏
虽然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 · 369 阅读 · 0 评论 -
项目开发流程
项目开发流程做APP需要原型图: 有网页原型图,线框原型图、图片原型图原型图制作工具: 网页原型图制作工具:axure 图片原型图制作工具:PS、Sketch原创 2015-08-25 13:29:14 · 298 阅读 · 0 评论 -
扩展类
所有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 · 266 阅读 · 0 评论 -
版本欢迎页
思路建立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 · 245 阅读 · 0 评论 -
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 · 1678 阅读 · 0 评论