09 2015 档案

设置一个View的背景图片的集中方法
摘要:layer 阅读全文

posted @ 2015-09-27 00:54 王刚韧(wanghy_iOS) 阅读(539) 评论(0) 推荐(0) 编辑

IOS开发中针对UIImageView的几种常用手势
摘要://// ViewController.m// 05-手势//// Created by wanghy on 15/9/21.// Copyright (c) 2015年 wanghy. All rights reserved.//#import "ViewController.h"@interfa... 阅读全文

posted @ 2015-09-21 23:26 王刚韧(wanghy_iOS) 阅读(718) 评论(0) 推荐(0) 编辑

VIew中的触摸事件 touchBegin 等一系列方法
摘要:5。触摸事件 touchBegin 等一系列方法 1)手指按下 - (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event; 2)按下并移动 - (void)touchesMoved:(NSSet *)to... 阅读全文

posted @ 2015-09-21 07:33 王刚韧(wanghy_iOS) 阅读(876) 评论(0) 推荐(0) 编辑

控制器的跳转-modal与push
摘要:一、modal与pushmodal从下面往上盖住原来的控制器,一般上一个控制器和下一个控制器没有什么关联时用modal,比如联系人的加号跳转页面,任何控制器都可以用modalpush一般是上下文有关联时用,(比如设置界面的通用跳转页面)导航控制器才能用pushA控制器modal出B控制器,那么A控制... 阅读全文

posted @ 2015-09-17 15:15 王刚韧(wanghy_iOS) 阅读(699) 评论(0) 推荐(0) 编辑

终于决定把自己的小窝从CSDN搬到博客园了
摘要:以后就在这里安家喽 阅读全文

posted @ 2015-09-17 14:57 王刚韧(wanghy_iOS) 阅读(108) 评论(0) 推荐(0) 编辑

UIView的frame和bounds区别
摘要:UIView的frame和bounds区别iOS中,大家肯定对view和frame都不陌生,我们设置view在父view中的位置和大小时,只需要设置frame就可以了。可能大家也有查过网上的一些资料,可能也会得知frame是相对于superview坐标系的,而bounds则相对于view自身的坐标系... 阅读全文

posted @ 2015-09-17 14:29 王刚韧(wanghy_iOS) 阅读(940) 评论(0) 推荐(0) 编辑

UItextField常用方法
摘要:- (void)viewDidLoad { [superviewDidLoad]; // Do any additional setup after loading the view.#warning第一步:及时监听文本框的内容,决定登录按钮是否允许点击,第一种用通知,第二种方法:用target /... 阅读全文

posted @ 2015-09-17 14:26 王刚韧(wanghy_iOS) 阅读(147) 评论(0) 推荐(0) 编辑

资源打包后项目中的文件
摘要:一.资源打包Assets.car1.如果部署版本>=8.0,并且图片被放入到Images.xcassets,图片打包之后会被放到Assets.car,并且是有对图片资源进行压缩.2.如果部署版本<8.0,并且图片被放入到Images.xcassets,图片会被放到MainBundle里面,并且不会对... 阅读全文

posted @ 2015-09-17 14:24 王刚韧(wanghy_iOS) 阅读(188) 评论(0) 推荐(0) 编辑

xcode插件安装完之后无法使用问题解决
摘要:1.打开xcode插件所在的目录:例如:~/wangdi/library/Application Support/Developer/Shared/Xcode/Plug-ins/Users/sunfei/Library/Application Support/Developer/Shared/Xco... 阅读全文

posted @ 2015-09-10 22:17 王刚韧(wanghy_iOS) 阅读(391) 评论(0) 推荐(0) 编辑

UIImageView的图片拉伸
摘要:iOS 8:UIView Stretching设置使用小图片当变长输入框或类似QQ聊天文字背景效果时,需要拉伸图片。UIImage提供了三个可完成此任务的方法:resizableImageWithCapInsets:resizableImageWithCapInsets:resizingMode:s... 阅读全文

posted @ 2015-09-10 22:02 王刚韧(wanghy_iOS) 阅读(1359) 评论(0) 推荐(0) 编辑

C语言-求1-20的阶乘的和(函数的递归)
摘要://// main.c// C语言//// Created by wanghy on 15/9/5.// Copyright (c) 2015年 wanghy. All rights reserved.#include //定义一个函数,求参数n的阶乘。名字叫func返回值是 int类型。参数是 i... 阅读全文

posted @ 2015-09-05 22:36 王刚韧(wanghy_iOS) 阅读(1891) 评论(0) 推荐(0) 编辑

iOS-开发日志-UIButton
摘要:UIButton属性1.UIButton状态:UIControlStateNormal // 正常状态UIControlStateHighlighted // 高亮状态UIControlStateDisabled // 禁用状态UIControlStateSelected // 选中状态UICont... 阅读全文

posted @ 2015-09-03 07:52 王刚韧(wanghy_iOS) 阅读(130) 评论(0) 推荐(0) 编辑

苹果API常用英语名词
摘要:苹果API常用英语名词0. indicating 决定1.in order to 以便2.rectangle bounds 矩形尺寸3.applied 应用4.entirety 全部5.technique 方法6.truncating 截短7.wrapping 换行8.string 字符串9.fam... 阅读全文

posted @ 2015-09-03 07:50 王刚韧(wanghy_iOS) 阅读(195) 评论(0) 推荐(0) 编辑

iOS-开发日志-UIimageView
摘要:UIImageView属性1.Image 设置图片,默认显示UIImageView *_imageView = [[UIImageViewalloc]init];_imageView.image = [UIImageimageNamed:@"me.png"];2.highlightedImage 设... 阅读全文

posted @ 2015-09-03 07:47 王刚韧(wanghy_iOS) 阅读(140) 评论(0) 推荐(0) 编辑

IOS-开发日志-UILabel相关
摘要:UILabel属性1.text:设置标签显示文本。2.attributedText:设置标签属性文本。Ios代码NSString*text=@"first";NSMutableAttributedString*textLabelStr=[[NSMutableAttributedStringalloc... 阅读全文

posted @ 2015-09-03 07:41 王刚韧(wanghy_iOS) 阅读(126) 评论(0) 推荐(0) 编辑

iOS-开发日志-UIPageControl
摘要:UIPageControl1.numberOfPages // 设置有多少页 默认为0// 2) 设置页数 [pageControl setNumberOfPages:kImageCount];2.currentPage // 设置当前页[pageControl setCurrentPage:0];... 阅读全文

posted @ 2015-09-02 23:54 王刚韧(wanghy_iOS) 阅读(123) 评论(0) 推荐(0) 编辑

IOS-开发日志-UIScrollView
摘要:UIScrollView1.contentOffset默认CGPointZero,用来设置scrollView的滚动偏移量。 // 设置scrollView的滚动偏移量 scrollView.contentOffset = CGPointMake(0, 200);2.contentSize默认CGS... 阅读全文

posted @ 2015-09-02 23:50 王刚韧(wanghy_iOS) 阅读(147) 评论(0) 推荐(0) 编辑

IOS-开发日志-UITextField属性
摘要:UITextField属性0. enablesReturnKeyAutomatically 属性默认为No,如果设置为Yes,文本框中没有输入任何字符的话,右下角的返回按钮是disabled的。1.borderStyle设置边框样式,只有设置了才会显示边框样式 text.borderStyle =... 阅读全文

posted @ 2015-09-02 23:43 王刚韧(wanghy_iOS) 阅读(183) 评论(0) 推荐(0) 编辑

iOS-开发日志-UITextView介绍
摘要:UITextView属性1.text:设置textView中文本_textView.text =@"Now is the time for all good developers to come toserve their country.\n\nNow is the time for all go... 阅读全文

posted @ 2015-09-02 23:29 王刚韧(wanghy_iOS) 阅读(197) 评论(0) 推荐(0) 编辑

iOS-开发记录-UIView属性
摘要:UIView属性1.alpha设置视图的透明度.默认为1. // 完全透明 view.alpha =0; // 不透明 view.alpha =1;2.clipsToBounds// 默认是NO,当设置为yes时,超出当前视图的尺寸的内容和子视图不会显示。view.clipsToBounds =YE... 阅读全文

posted @ 2015-09-02 23:23 王刚韧(wanghy_iOS) 阅读(172) 评论(0) 推荐(0) 编辑

Ios-UITableView
摘要:UITableView相关总结样式:UITableView内置了两种样式:UITableViewStylePlain(也就是一组) UITableViewStyleGrouped(多组)里的方法:tableView处理步骤#pragma mark 1.有多少组-(NSInteger)numberOf... 阅读全文

posted @ 2015-09-02 23:07 王刚韧(wanghy_iOS) 阅读(168) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示