标签:ios今天在项目中需要用到判断用户输入的用户名长度为8-16位且同时包含数字和字母,在网上搜了一下正则表达式的用法,然后参考这篇blog,完美解答了问题。记录一下:密码有如下要求:由数字和字母组成,并且要同时含有数字和字母,且长度要在8-16位之间。如何分析需求?拆分!这就是软件设计的一般思路...
分类:
移动开发 时间:
2015-12-25 14:57:34
阅读次数:
148
1.修改:build.gradle(Project)文件中的classpath的gradle版本为当前AS使用的版本;apply plugin: 'com.android.application'buildscript { repositories { jcenter() ...
分类:
移动开发 时间:
2015-12-25 14:52:58
阅读次数:
165
先说说整个环境搭建的过程。上周开始要在windows上搭建react-native for android环境,当时按照找的教程,从git上clone master分支的代码,然后下载了node,安装react-native框架还是很顺利的。导入到android studio上就无法构建,找找了找原...
分类:
移动开发 时间:
2015-12-25 13:41:16
阅读次数:
325
随着中心业务的发展,手机端的活动和应用逐渐多了起来。在测试的过程发现,对于微信类的活动,开发内网调式不方便。现在将如何抓取手机发送的请求的小知识与大家分享。一. 需要的工具Fiddler(下载地址:http://www.telerik.com/download/fiddler)任意一款手机二. 配置...
分类:
移动开发 时间:
2015-12-25 13:34:14
阅读次数:
299
英文原文地址:http://phonegap.com/blog/2015/03/12/mobile-choices-post1/移动App开发策略选择这篇文章是,选择移动App开发策略时面对不同选择如何综合考虑之系列文章的第一篇。通过各方面的比较,让开发者明白什么时候什么地方在自己的app里面使用A...
分类:
移动开发 时间:
2015-12-25 13:32:21
阅读次数:
312
题目:Given n non-negative integers representing an elevation map where the width of each bar is 1, compute how much water it is able to trap after raini...
分类:
移动开发 时间:
2015-12-25 13:30:41
阅读次数:
144
var u = navigator.userAgent, app = navigator.appVersion;var isAndroid = u.indexOf('Android') > -1 || u.indexOf('Linux') > -1; //android终端或者uc浏览器var is...
分类:
移动开发 时间:
2015-12-25 13:29:45
阅读次数:
158
网络图片查看器输入网络图片路径。点击查看把web应用的图片显示在手机上MainActivity{EditText pathText=(EditText) this.findViewById(R.id.imagepath);Button button=(Button) this.findViewByI...
分类:
移动开发 时间:
2015-12-25 13:24:30
阅读次数:
134
以下来写IntroView的onMeasureHeight:private int measureHeight(int measureSpec) { int result = 0; int specMode = MeasureSpec.getMode(measureSpe...
分类:
移动开发 时间:
2015-12-25 13:21:50
阅读次数:
207
ApplicationBuilder(IApplicationBuilder接口),是OWIN的基础,而且里面都是代理、代理的代理,各种lambda表达式,估计要看这部分代码,很多人得头昏脑涨。今天就对个类以及几个扩展方法进行讲解。按惯例先贴代码(这是我修改后的,将接口继承去掉了、HttpConte...
分类:
移动开发 时间:
2015-12-25 13:17:56
阅读次数:
191
本文转自http://ruikq.github.io/ios/autolayout/uiscrollview/2015/01/27/iOS-autolayout%E6%80%BB%E7%BB%93.htmlautolayout, and uiscrollview以前学习iOS的时候没怎么接触过aut...
分类:
移动开发 时间:
2015-12-25 13:14:13
阅读次数:
262
解决方法:input{ border-radius:0; -webkit-border-radius:0;}
分类:
移动开发 时间:
2015-12-25 13:09:26
阅读次数:
175
类目(category):为已有的类添加新的方法。(只能添加方法,不能添加实例变量)添加方法:command + n ---->Objective-C File ----->File Type(category)用途:常用在给系统类添加方法。延展(extension):就是定义自己的私有方法。(可以...
分类:
移动开发 时间:
2015-12-25 13:11:23
阅读次数:
214
http://blog.csdn.net/think_soft/article/details/7998478使用Camera功能大多数的Camera功能都是使用Camera.Parameters对象来激活和控制的。首先要通过Camera对象实例的getParameters()方法,来获取这个对象,...
分类:
移动开发 时间:
2015-12-25 13:07:30
阅读次数:
232
根据测试,书中的代码,在自己的5.1 版本的华为手机上是不能正常跑的。调用的图片并不能正确显示,在公司的4.x版本的手机上显示正常。 代码如下 package org.quentin.choosepictest; import java.io.File; import java.io.FileNot...
分类:
移动开发 时间:
2015-12-25 13:08:55
阅读次数:
202
位于android-studio/bin目录下的studio64.vmoptions和studio.vmoptions文件。把Xms,Xmx,-XX:MaxPermSize,-XX:ReservedCodeCacheSize分别修改大一些,根据电脑内存大小分配大一点就可以了。1.studio64.vmoptions文件-Xms512m-Xmx2048m-XX:MaxPermSize=1024m-X...
分类:
移动开发 时间:
2015-12-25 11:52:57
阅读次数:
271
Application.DoEvents()的作用:处理所有的当前在消息队列中的Windows消息。[c-sharp]view plaincopyprivatevoidbutton1_Click(objectsender,EventArgse){for(inti=0;i<10000;i++){lab...
分类:
移动开发 时间:
2015-12-25 11:48:42
阅读次数:
212