ionic(强烈推荐,为serious web app而生)Framework7ChocolateChip-UIFoundationjQuery Mobile Flat UI ThemejQuery Mobile Bootstrap ThemeUIKitKendo UI Mobile(大框架。下载使...
分类:
移动开发 时间:
2014-07-10 11:07:57
阅读次数:
241
1 UIGraphicsBeginImageContext(self.view.bounds.size);// 设置上下文2 3 [self.view.layer renderInContext:UIGraphicsGetCurrentContext()];4 5 UIImage *image=UI...
分类:
移动开发 时间:
2014-07-10 11:01:17
阅读次数:
199
iPhone上的Safari(还有些webkit android手机浏览器)会自动对看起来像是电话号码的数字串(包括已经加入连字符或括号格式化过的)添加电话链接,点击之后会询问用户是否想要拨打该号码。如果你不希望开启这个自动识别,可以将它关闭:如果你关闭自动识别后,又希望某些电话号码能够链接到iPh...
分类:
移动开发 时间:
2014-07-10 10:56:37
阅读次数:
264
function uaredirect(f){try{if(document.getElementById("bdmark")!=null){return}var b=false;if(arguments[1]){var e=window.location.host;var a=window.loc...
分类:
移动开发 时间:
2014-07-10 10:53:54
阅读次数:
294
Struts2.16与Spring4.x整合出错:Caused by: java.lang.RuntimeException: com.opensymphony.xwork2.inject.DependencyException: com.opensymphony.xwork2.inject.Con...
分类:
移动开发 时间:
2014-07-10 10:51:14
阅读次数:
261
首先说最根本的解决方法:手机访问时,会附带发送user-agent信息,这个信息里面会有手机号码信息,那么如果能取得手机号码,则可以肯定是通过手机wap访问的。但是目前中国移动已经屏蔽了user-agent信息,所以获取不到手机号码。有关系的朋友可以联系移动公司,把wap网站服务器的ip提交给中国移...
分类:
移动开发 时间:
2014-07-10 10:46:36
阅读次数:
197
HTML5 开发框架jQuery MobilejQuery Mobile(jQueryMobile) 是 jQuery 在手机上和平板设备上的版本。jQuery Mobile 不仅会给主流移动平台带来jQuery核心库,而且会发布一个完整统一的jQuery移动UI框架。支持全球主流的移动平台。jQu...
分类:
移动开发 时间:
2014-06-29 18:29:54
阅读次数:
461
报错提示为:org.hibernate.hql.ast.QuerySyntaxException: customers is not mapped [from customers as c]服务层代码 为:public void findCustomerAndOrders(){ Ses...
分类:
移动开发 时间:
2014-07-10 10:29:13
阅读次数:
320
实现方法是在application中定义一个集合存储所有的Activity对象,在Activity创建时添加进集合中,在程序退出时,finish掉所有的Activity即可。步骤如下:1.自定义Application,MyApplication.java代码如下: 1 public class My...
分类:
移动开发 时间:
2014-07-10 10:24:07
阅读次数:
198
1.开发背景 最近用html5写了个小游戏,中间踩过无数坑,有很多甚至百度都百度不到答案,可见html5还真是不成熟,兼容性的复杂度比ie6有过之而无不及,性能那个渣简直无力吐槽。。 好了,吐槽结束,虽然有这么多的缺点,但是由于其良好的跨平台前景以及极低的学习成本,再加上优秀的框架,我最终还...
分类:
移动开发 时间:
2014-07-10 10:22:08
阅读次数:
252
包括了对手机系统版本的判断,对手机硬件的判断,对手机具体型号的判断。#import "RootViewController.h"//为判断手机的型号 -(NSString*)deviceString添加头文件#import "sys/utsname.h"- (void)viewDidLoad{ .....
分类:
移动开发 时间:
2014-07-10 10:21:26
阅读次数:
301
自己写个小程序,需求图片转马赛克.protected Bitmap mosic(Bitmap bitmap){ int bitWidth = bitmap.getWidth(); int bitHeight = bitmap.getHeight(); int...
分类:
移动开发 时间:
2014-07-10 10:17:35
阅读次数:
202
Call requires API level 3 (current min is 1): android.content.res.Resources#getBoolean参考文档:http://stackoverflow.com/questions/10322482/android-lint-er...
分类:
移动开发 时间:
2014-07-10 00:41:18
阅读次数:
280
1、UISearchBar自定义背景、取消按钮中文设置C代码 UISearchBar*seachBar=[[UISearchBaralloc]init];//修改搜索框背景seachBar.backgroundColor=[UIColorclearColor];//去掉搜索框背景[[searchba...
分类:
移动开发 时间:
2014-07-10 00:27:10
阅读次数:
413
//音效的音量 int streamVolume; //定义SoundPool 对象 private SoundPool soundPool; //定义HASH表 private HashMap soundPoolMap; /*****************************...
分类:
移动开发 时间:
2014-07-10 00:26:34
阅读次数:
222
这次学习的控件非常重要且非常强大,是ios应用中使用率非常高的一个控件,可以说几乎每个app都会使用到它,它就是功能异常强大的Table Views。可以打开你的iphone中的phone、Messages、Contacts、Mail、Settings等等等等,这些都用到了Table Views。在...
分类:
移动开发 时间:
2014-07-10 00:10:59
阅读次数:
320
//邮箱+ (BOOL) validateEmail:(NSString *)email{ NSString *emailRegex = @"[A-Z0-9a-z._%+-]+@[A-Za-z0-9.-]+\\.[A-Za-z]{2,4}"; NSPredicate *emailTest = [.....
分类:
移动开发 时间:
2014-07-10 00:06:26
阅读次数:
282
Unicode (Unicode码) Unicode是一种国际标准的文本编码.它的标准表中几乎包含所有语言的任意字符,并且可以通过扩展文件或者网页读写这些字符. 在Swift中,String(字符串)类型和Character(字符)类型完全兼容Unicode,而且它们也支持非Unicode码.U.....
分类:
移动开发 时间:
2014-07-10 00:01:47
阅读次数:
327
警告:Not targeting the latest versions of Android; compatibility modes apply.Consider testing and updating this version. Consult the android.os.Build.VE...
分类:
移动开发 时间:
2014-07-09 23:56:40
阅读次数:
431
错误表现:[2014-06-27 18:19:51 - XXX] Installing XXXX.apk...[2014-06-27 18:20:00 - XXX] Installation error: INSTALL_FAILED_VERSION_DOWNGRADE[2014-06-27 18:...
分类:
移动开发 时间:
2014-07-09 23:54:03
阅读次数:
320