自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 jQuery Mobile 表单-滑块

滑块控件:允许从一定范围内的数字中选取值                 max-最大值  min-最小值  step-数字间隔  value-默认值   突出显示滑块值-  data-highlight="true"               e.g.                                    range

2014-02-27 09:53:39 1186

原创 jQuery Mobile 表单选择菜单

选择菜单:创建下拉菜单,表示列表选项,表示列表分组标题               e.g.              fieldset  data-role="fieldcontain">                  标题                                                                    tex

2014-02-26 16:48:15 1191

原创 jQuery Mobile 表单输入元素

输入字段:是通过标准的HTML元素编写的 (jQuery Mobile会为它们设置专门针对移动设备的美观易用的样式,同时还可以使用新的HTML5 类型)               e.g.               描述                  // type="date" | type="email"文本框:多行文本输入(会自动扩大,以适应用户输入的文本行)

2014-02-26 10:50:58 1345

原创 jQuery Mobile 表单基础

jQuery Mobile表单:使用CSS来设置HTML表单元素的样式。表单控件包括:文本框,搜索框,单选框,复选框,选择菜单,滑动条,翻转切换开关基本规则: 元素必须设置method,action属性                 每个表单元素必须设置唯一的"id"属性。(该 id 在站点的页面中必须是唯一的)                每个表单元素必须有一个标记 labe

2014-02-25 17:04:29 872

原创 jQuery Mobile 列表内容

缩略图:可将大于16*16px 的图像,自动调整至80*80px            e.g.             添加16*16px的图像: class="ui-li-icon"            e.g.   <a  href="#">image拆分:在内放置两个链接,可创建带垂直分隔栏的拆分列表         对于第二个链接会自动添加蓝色箭头图标,链接

2014-02-25 15:38:18 841

原创 jQuery Mobile 列表视图

列表视图:是一种标准的HTML列表,分为有序列表(ol>)和无序列表(l>)                   创建: data-role="listview"    默认地,列表中的列表项 会自动转换为按钮(无需data-role="button")              为列表添加圆角和外边距:data-inset="true"               e.g.   

2014-02-25 11:37:01 799

原创 jQuery Mobile 网格

布局网格:是一种基于CSS的列布局方案。 由于移动设备的屏幕宽度所限,一般不推荐在移动设备上使用列布局                    在定位更小的元素时,可以使用到。                    网格中列是等宽的,无边框、背景、外边距、内边距                   2列:ui-grid-a(子元素:ui-block-a|b)

2014-02-24 17:30:10 909

原创 jQuery Mobile 折叠

可折叠: 允许隐藏或显示内容                  向某容器分配属性  data-role="collapsible"  表示折叠块            加载时显示扩展内容:data-collapsed="false"   // 默认加载折叠块时是隐藏折叠内容            e.g.                               折叠

2014-02-24 16:18:16 802

原创 jQuery Mobile 导航栏

导航栏: data-role="navbar" 通常位于页眉或页脚(也可以位于内容中)               由水平排列的链接构成,其中的链接会自动转换为按钮(无需data-role="button)               当包含的链接按钮数>5时,会以多行(每行2个)显示               链接的按钮图标定位: data-iconpos="left | ri

2014-02-24 15:08:55 684

原创 jQuery Mobile 工具栏

页眉栏:通常包含标题/Logo,或一到两个按钮               2个按钮时,会自动分列两侧           1个按钮时,会默认位于左侧           会自动居中           可设定按钮位置:class="ui-btn-right"               e.g.

2014-02-24 11:09:52 666

原创 jQuery Mobile 按钮

三种方式创建按钮:          按钮    //用于表单提交           //用于表单提交          按钮   //推荐用这种形式的按钮导航按钮: 转到page2 行内按钮:data-inline="true"  可使按钮宽度自适应其内容 (按钮默认情况会占据屏幕的全部宽度)                     转到page2组合按钮:dat

2014-02-21 16:52:09 1175

原创 jQuery Mobile 页面过渡

可选择页面打开方式的css效果 (即如何从一页过渡到下一页的效果)    使用: data-transition="slide">滑动到页面二               fade:淡入淡出到下一页(所有链接上的默认效果)              flip:从后向前翻动到下一页              flow:抛出当前页面,引入下一页              pop:像

2014-02-21 14:47:17 933

原创 jQuery Mobile 简介

jQuery Mobile               定义:是一种为触控优化的web框架,用于创建移动web 应用程序                             适用于所有流行的智能手机和平板电脑                           使用HTML5、CSS3、JavaScript、AJAX,通过尽可能少的代码来完成对页面的布局

2014-02-21 14:12:05 1127 2

翻译 Scheduling Local Notifications(调度本地通知)

即使app不在运行,或是在后台运行,也可以实现在某一特定时刻,发送通知给用户,这些通知还可以循环发送,如在每周的特定时间(类似推送)   一般可显示为Banner或是Alert形式,目前以Banner为主,即顶端横条,在ios5及以上的版本中,本地通知的显示形式已不能更改(可在设置-通用-通知中心中查看)   实现:        初始化:UILocalNotification *no

2014-02-17 16:42:23 1842

翻译 Listening for and Reacting to Keyboard Notifications(键盘通知)

在输入文本时,键盘弹出,遮挡了视图内容,此时可通过键盘通知来使你的UI组件向上或向移动,或对它们进行重组。  各键盘通知:     UIKeyboardWillShowNotification:包含user-info dictionary     UIKeyboardDidShowNotification     UIKeyboardWillHideNotification:包含u

2014-02-13 13:45:32 865

翻译 Sending , Listening for and Reacting to Notifications (发送,监听通知)

方法://初始化通知内容  senderObject:self,userInfo:接收到通知时可从中获取到的信息+ (instancetype)notificationWithName:(NSString *)aName object:(id)senderObject userInfo:(NSDictionary *)userInfo//发送通知- (void)postNotifi

2014-02-12 17:28:09 779

翻译 Handling Network Connections in the Background(在多任务环境下网络连接的处理)

当用户按下home键时,app进入后台,此时app的下载过程会自动暂停,直到重新激活app,下载会自动恢复e.g.  - (BOOL) application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions{    NSString *urlAsString

2014-02-12 11:30:08 806

翻译 Saving and Loading the State of Multitasking Apps(多任务应用中,状态变化的处理)

1。执行顺序:  第一次启动应用时:      1. application:didFinishLaunchingWithOptions: //运行     2. applicationDidBecomeActive: //激活   按下home键时,进入后台:     1. applicationWillResignActive: //取消激活     2.

2014-02-11 17:37:00 732

翻译 Playing Audio in the Background(在后台播放音乐)

前提:选中项目-设置-Capabilities-Background Modes-Audio and AirPlay 勾选中   #import   protocol:e.g.@property (nonatomic, strong) AVAudioPlayer *audioPlayer;- (void)audioPlayerBeginInterruption:(A

2014-02-11 16:13:09 1340

翻译 Adding Background Fetch Capabilities to Your Apps(在后台获取数据)

与前一篇介绍app(主动)在后台运行长时间的任务不同,这次是app(被动)让IOS唤醒启动模式  一般情况,都是打开运行app,然后让app刷新,才能看到新内容,但是这种新的唤醒机制是让app在后台就完成刷新任务,当用户打开app时,新内容已经呈现出  前提:项目设置-Capabilities-Background Modes:Background fetch 勾选中  方法: 

2014-02-11 14:21:44 1016

翻译 Completing a Long-Running Task in the Background(在后台完成长时间运行的任务)

当app运行中,按下home键,则此app进入后台,所有操作都将会被中止。若此时有一个需长时间运行的任务尚未结束,则可以向ios借用时间让其在后台继续完成方法   - (void)applicationDidEnterBackground:(UIApplication *)application    - (UIBackgroundTaskIdentifier)beginBackgro

2014-02-10 11:16:31 1474

翻译 Editing Videos on an ios Device(编辑手机上的视频)

1。导入库:  #import  #import  实现协议: e.g./*  解决思路:pick a video from the photo library            then display a video editor controller            then allow the user to edit the

2014-02-08 11:37:57 1128

翻译 Retrieving Assets from the Assets Library(不用内置GUI组件,检索手机中的相片/视频资源)

1.导入库,实现的协议      #import   #import    e.g.(一)- (void)actionRetrieve{   ALAssetsLibrary *assetsLibrary =  [[ALAssetsLibrary alloc] init];    [assetsLibrary   enumerateGroupsWi

2014-02-07 17:50:23 1630

翻译 Retrieving Photos and Videos from the Photo Library(从手机中检索相片,视频 )

1。导入库frame,实现协议protocol   #import   #import   e.g.- (BOOL) cameraSupportsMedia:(NSString *)paramMediaType sourceType:(UIImagePickerControllerSourceType)paramSourceType{    __block BO

2014-02-07 11:16:05 1131

空空如也

空空如也

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

TA关注的人

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