自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

翻译 简单form表单 登陆

html>head>title>用户调查表单title>head>body>h1 align="center">用户调查h1>formaction="mailto:[email protected]"method="get"name="register">姓名: inputtype="text"name="username"siz

2016-08-31 18:05:19 607

翻译 表格

html>head>title>设置表格边框颜色title>head>body>tablealign="center"width="600"border="1" bordercolor="#0099FF"cellspacing="0">caption>明日公司员工通讯录caption> tr>th>电话th>

2016-08-31 17:24:31 143

翻译 简单的成绩表

html>head>title>成绩单title>head>body>h3>下面公布某高中的中考成绩:h3>table>caption>期中考试成绩单caption>tr>th>姓名th>th>语文th>th>数学th>th>英语th>th>物理th>th>化学th>tr>

2016-08-31 15:48:29 222

翻译 创建列表

html>head>title>创建菜单列表title>head>body>font size="3"color="#3300FF">本章中介绍的列表主要包括:font>br/>menu>li>无序列表li>li>有序列表li>li>定义列表li>li>菜单列表li>li>目录列表li>menu

2016-08-31 15:13:58 237

翻译 设置链接文字属性-link

html>head>title>页面的连接文字title>head>bodytext="#6699FF"link="#FF0000">center>设置文字连接效果br />br/>ahref="http://www.baidu.com">链接文字a>br />br/>center>bo

2016-08-31 11:11:10 772

翻译 禁止从缓存中调用

html>head>title>禁止从缓存中调用title>metahttp-equiv="Cache-Control"content="no_cache">metahttp-equiv="Pragma"content="no-cache">head>body>body>html>

2016-08-31 10:56:18 210

翻译 H5初学界面跳转

html>head>title>要跳转的网页title>metahttp-equiv="refresh"content="3;url=http://www.baidu.com">head>body>您好, 本页将在3秒之后将自动跳转到百度body>html>

2016-08-31 10:38:45 380

转载 条件判断用法

(NSInteger)numberOfSectionsInTableView:(UITableView *)tableView { return _dataSource?1:0; }(NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section{ return _dataSource

2016-08-23 11:43:15 223

原创 通知问题

_BSMachError: (os/kern) invalid capability (20) _BSMachError: (os/kern) invalid name (15) 注释了postNotificationName,忘记把addObserver也删除。

2016-08-16 15:42:47 180

原创 第三方登录

(void)weixinAction:(UIButton *)sender {//判断是否安装微信BOOL hadInstalledWeixin = [[UIApplication sharedApplication] canOpenURL:[NSURL URLWithString:@”weixin://”]];if (YES == hadInstalledWeixin) { self.

2016-08-09 12:28:35 216

原创 解决上传横屏图片不翻转

//解决拍照图片翻转问题 - (UIImage )fixOrientation:(UIImage )aImage { if (aImage.imageOrientation == UIImageOrientationUp) return aImage;CGAffineTransform transform = CGAffineTransformIdentity;switch (a

2016-08-09 12:25:07 802

原创 图片压缩问题

[self.image setContentScaleFactor:[[UIScreen mainScreen] scale]];self.image.contentMode = UIViewContentModeScaleAspectFill;self.image.autoresizingMask = UIViewAutoresizingFlexibleWidth;self.image.clips

2016-08-09 12:19:26 162

原创 视图控制器 支持滑动点击

[self addSegement];UICollectionViewFlowLayout *picture_V = [[UICollectionViewFlowLayout alloc] init];//最小行间距picture_V.minimumLineSpacing = 0 ;//滚动方向picture_V.scrollDirection = UICollectionViewScrol

2016-08-09 12:17:13 216

原创 ping++ 集成支付

//结算(void)buttonAction:(UIButton *)sender {pragma 获取用户当前IP//调起微信支付if ([self.payStr isEqualToString:@"weixin"]) { //判断是否安装微信 BOOL hadInstalledWeixin = [[UIApplication sharedApplication] canO

2016-08-09 12:14:35 1181

原创 输入框适配各种键盘高度

//增加监听,当键盘出现或改变时收出消息 [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(keyboardWillShown:)

2016-08-09 12:09:47 1235

原创 cookie问题

//清除cookie NSHTTPCookieStorage *cookieJar = [NSHTTPCookieStorage sharedHTTPCookieStorage]; NSArray *_tmpArray = [NSArray arrayWithArray:[cookieJar cookies]]; for (id obj in _tmpArray) {

2016-08-09 12:06:58 247

原创 封装的轮播图作为头视图的tableview

(void)getLunboImage {// 创建一个View存放scroll和page和collection self.viewV = [[UIView alloc] initWithFrame:CGRectMake(0, 0,[UIScreen mainScreen].bounds.size.width, 288 * ScreenHeigth)];//赛事 self.ball = [UI

2016-08-09 12:05:21 390

原创 UItableview分割线问题

//解决左边空白问题if ([self.tableV respondsToSelector:@selector(setSeparatorInset:)]) { [self.tableV setSeparatorInset:UIEdgeInsetsZero];}if ([self.tableV respondsToSelector:@selector(setLayoutMargins:)])

2016-08-09 11:41:12 668

原创 创建全屏右滑返回上一级界面

//设置全屏右滑返回UISwipeGestureRecognizer *pan = [[UISwipeGestureRecognizer alloc] initWithTarget:self action:@selector(handleNavigationTransition)];// 设置手势代理,拦截手势触发pan.direction = UISwipeGestureRecognizer

2016-08-09 11:36:38 512

原创 iOS js 交互获取数据或者是进行跳转界面

第一步 导入头文件import

2016-08-09 11:32:53 1607

原创 lanchimage不显示

正确配置以后不显示lanchimage 解决办法:clean一下工程, 或者重新安装一下

2016-08-09 11:28:11 220

原创 uiwebview 保存图片到系统相册

//长按手势 UILongPressGestureRecognizer * longPressed = [[UILongPressGestureRecognizer alloc] initWithTarget:self action:@selector(longPressed:)]; longPressed.delegate = self; [self.webView

2016-08-09 11:19:59 509

空空如也

空空如也

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

TA关注的人

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