首页 > 2016年02月18日 > 全部分享
UIWebView用法详解及代码分享
今天我们来详细UIWebView用法。UIWebView是iOS内置的浏览器控件,可以浏览网页、打开文档等 能够加载html/htm、pdf、docx、txt等格式的文件. 用UIWebView我们就可以做一个简易的浏览器。效果如下: 创建UIWebView 首先创建UIWebView,这个不难,设
分类:Web开发   时间:2016-02-18 01:18:56    收藏:0  评论:0  赞:0  阅读:235
Linux下安装GCC5.3.0(亲测有效)
对于linux小白来说,只需要先知道怎么安装,至于为什么等学了linux再说吧。。知识不系统的坏处啊! 首先,一般ubuntu上都预装了低级版本的Gcc,完全可以应付刷OJ时的C+Class+STL的风格,但因为寒 假里非常固执地要看C++primer,所以只能把编译器升级到最新版本以符合C++11
分类:系统服务   时间:2016-02-18 01:18:46    收藏:0  评论:0  赞:0  阅读:2210
POJ 1797 Heavy Transportation
( ̄▽ ̄)" 第一种解题方法:dij变形 //无向图最短路,dij的变形(有点像prim) //题意:从起点1到终点n,找出一条路,该条路的最小负重是最大的 #include #include #include #include #include #include #include #include...
分类:其他   时间:2016-02-18 01:18:36    收藏:0  评论:0  赞:0  阅读:288
nginx+tomcat集群配置(3)---获取真实客户端IP
前言: 在初步构建的nginx+tomcat服务集群时, 发现webserver获取到的客户端ip都是同一个, 皆为作为反向代理服务的nginx所在的机器IP. 这不太符合我们的基本需求, 为将来的数据挖掘和分析带来了麻烦. 不过不用担心, 本文将简单介绍其背后的原因和原理, 以及具体的解决方案,
分类:其他   时间:2016-02-18 01:18:26    收藏:0  评论:0  赞:0  阅读:282
截取UIImage指定大小区域
截取UIImage指定大小区域 最近遇到这样的需求:从服务器获取到一张照片,只需要显示他的左半部分,或者中间部分等等。也就是截取UIImage指定大小区域。 UIImage扩展 我的解决方案是对UIImage进行扩展。通过CGImageRef和CGImage完成截取,调用的方法是:CGImageCr
分类:其他   时间:2016-02-18 01:18:06    收藏:0  评论:0  赞:0  阅读:168
自己写的安装教程
http://rubyinstaller.org/downloads/下载 https://git-for-windows.github.io/点击 跳转到如下页面(https://github.com/git-for-windows/git/releases/tag/v2.7.1.windows....
分类:其他   时间:2016-02-18 01:17:35    收藏:0  评论:0  赞:0  阅读:178
AHB 总线问答(转)
<!-- h3 { margin-top: 0.19in; margin-bottom: 0.19in; direction: ltr; color: rgb(0, 0, 0); widows: 2; orphans: 2; page-break-after: auto; }h3.western {
分类:其他   时间:2016-02-18 01:17:25    收藏:0  评论:0  赞:0  阅读:327
POJ 1062 昂贵的聘礼(dij+邻接矩阵)
( ̄▽ ̄)" #include #include #include #include using namespace std; const int INF=10e8; const int MAXN=110; int k,minn; int c[MAXN][MAXN],lc[MAXN],level[M...
分类:其他   时间:2016-02-18 01:17:15    收藏:0  评论:0  赞:0  阅读:169
execute、executeQuery和executeUpdate之间的区别
参考 http://blog.csdn.net/u012830807/article/details/17333331 JDBC中Statement 接口提供了三种执行 SQL 语句的方法: executeQuery executeUpdate execute 使用哪一个方法由 SQL 语句所产生的
分类:其他   时间:2016-02-18 01:17:05    收藏:0  评论:0  赞:0  阅读:291
iOS KVO概述
iOS KVO概述 面试中经常会被问到:什么是KVO?这个问题既然出现概率这么大,那么我们就来详细讲一讲到底什么是KVO。下次再有面试官问你的时候,你就可以娓娓道来,以彰显高逼格 概述 问:什么是KVO? 答:KVO是Key-Value Observing的缩写。它提供一种机制,当指定的对象的属性被
分类:移动平台   时间:2016-02-18 01:16:55    收藏:0  评论:0  赞:0  阅读:247
javascript js获取URL参数跳转
<script language="javascript" type="text/javascript"> function getQueryString(name) { var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i"); var
分类:编程语言   时间:2016-02-18 01:16:44    收藏:0  评论:0  赞:0  阅读:293
day4作业
作业内容:计算器 1 #!/usr/bin/env python 2 # -*- coding:utf-8 -*- 3 import re,time 4 #加减字符处理函数 5 def handle_symbol(cal_str): 6 # if cal_str.__contains__("+-")
分类:其他   时间:2016-02-18 01:16:34    收藏:0  评论:0  赞:0  阅读:284
POJ 1860 Currency Exchange(SPFA+邻接矩阵)
( ̄▽ ̄)" #include #include #include #include #include #include #include using namespace std; const int eps=1e-7; const int MAXN=110; int N,M,S; double V...
分类:其他   时间:2016-02-18 01:16:14    收藏:0  评论:0  赞:0  阅读:122
PHP——0126最初
数据库mydb 表格info,nation 实现效果 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <
分类:Web开发   时间:2016-02-18 01:15:54    收藏:0  评论:0  赞:0  阅读:317
[LeetCode] Strobogrammatic Number 对称数
A strobogrammatic number is a number that looks the same when rotated 180 degrees (looked at upside down). Write a function to determine if a number i
分类:其他   时间:2016-02-18 01:15:44    收藏:0  评论:0  赞:0  阅读:178
iOS 中的 NSTimer
iOS 中的 NSTimer NSTimer fire 我们先用 NSTimer 来做个简单的计时器,每隔5秒钟在控制台输出 Fire 。比较想当然的做法是这样的: @interface DetailViewController () @property (nonatomic, weak) NSTi
分类:移动平台   时间:2016-02-18 01:15:13    收藏:0  评论:0  赞:0  阅读:322
UITableView的自定义以及自适应高度
1.自定义cell的第一步,将所有cell要显示的子视图控件都声明成属性(不能与cell里面的属性重名) 2.重写cell的初始化方法 frame给定为0 将控件添加到cell上面进行显示。一个要注意使用self.contarntView添加 3.重写layoutSubviews方法,给定内部控件的
分类:其他   时间:2016-02-18 01:15:03    收藏:0  评论:0  赞:0  阅读:240
三种iOS应用程序用户数据存储方法
本文通过偏好设置,plist文件,归档解档三种方法来演示iOS应用程序用户数据存储机制。 首先,我们创建一个Person类,并定义三个成员属性,用来存储数据 @property (nonatomic,copy) NSString *name; @property (nonatomic,assign)
分类:移动平台   时间:2016-02-18 01:14:53    收藏:0  评论:0  赞:0  阅读:281
win7安装nodejs
刚刚在网上看到Cheerio,为服务器特别定制的,快速、灵活、实施的jQuery核心实现,适合各种Web爬虫程序。 看了下,cheerio 是nodejs的抓取页面模块 于是决定先学习下nodejs了 Node.js采用的Javascript引擎是来自Google Chrome的V8 安装 去Nod
分类:Windows开发   时间:2016-02-18 01:14:44    收藏:0  评论:0  赞:0  阅读:270
POJ 1611 The Suspects(简单并查集)
( ̄▽ ̄)" #include #include using namespace std; int fa[30010]; void makeSet(int n) //初始化,n个元素,处于单独集合 { for(int i=0;i<n;i++) fa[i]=i; } int findSet(int x...
分类:其他   时间:2016-02-18 01:14:33    收藏:0  评论:0  赞:0  阅读:207
1289条   上一页 1 ... 60 61 62 63 64 65 下一页
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!