首页 > 移动平台
Android SDK 在线更新镜像服务器
大连东软信息学院镜像服务器地址:-http://mirrors.neusoft.edu.cn端口:80北京化工大学镜像服务器地址:- IPv4:http://ubuntu.buct.edu.cn/端口:80- IPv4:http://ubuntu.buct.cn/端口:80- IPv6:http:/...
分类:移动平台   时间:2015-08-27 22:47:13    收藏:0  评论:0  赞:0  阅读:388
IOS中的响应者链
响应者链就是当子视图不响应,父视图有响应事件,父视图响应#import "RootViewController.h"#import "ResponderView.h"@interface RootViewController ()@end@implementation RootViewControl...
分类:移动平台   时间:2015-08-27 22:44:33    收藏:0  评论:0  赞:0  阅读:344
iOS中的UIView的基本属性
#import "AppDelegate.h"@interface AppDelegate ()@end@implementation AppDelegate- (BOOL)application:(UIApplication *)application didFinishLaunchingWith...
分类:移动平台   时间:2015-08-27 22:44:23    收藏:0  评论:0  赞:0  阅读:273
iOS-点餐系统
//// ViewController.m// 点餐系统//// Created by YaguangZhu on 15/8/27.// Copyright (c) 2015年 YaguangZhu. All rights reserved.//#import "ViewController...
分类:移动平台   时间:2015-08-27 22:42:53    收藏:0  评论:0  赞:0  阅读:443
iOS中的分页控件(UIPageControl)
#import "RootViewController.h"@interface RootViewController ()@end@implementation RootViewController- (void)viewDidLoad { [super viewDidLoad]; /...
分类:移动平台   时间:2015-08-27 22:41:53    收藏:0  评论:0  赞:0  阅读:332
iOS控制器常见的创建方式有以下几种
>通过storyboard创建>直接创建YTViewController *yt = [[YTViewController alloc]init];>指定xib文件来创建YTViewController *yt = [[YTViewController alloc]initWithNibName:@...
分类:移动平台   时间:2015-08-27 22:35:14    收藏:0  评论:0  赞:0  阅读:276
iOS中的触摸事件(TouchView) - (代理响应) - (实现touch的按钮化)
#import "RootViewController.h"#import "ActionView.h"#import "UIColor+MyUIColor.h"@interface RootViewController ()@end@implementation RootViewControlle...
分类:移动平台   时间:2015-08-27 22:33:33    收藏:0  评论:0  赞:0  阅读:297
iOS中的UIScorllView(滑动控件,时机控制)的基本使用
#import "RootViewController.h"#define kScreenWidth [UIScreen mainScreen].bounds.size.width#define kScreenHeight [UIScreen mainScreen].bounds.size.heig...
分类:移动平台   时间:2015-08-27 22:32:53    收藏:0  评论:0  赞:1  阅读:2968
iOS中的导航条(UISegmentedControl)的基本使用(界面中传值的3中方法)
Appdelegate中- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { self.window = [[[UIWindo...
分类:移动平台   时间:2015-08-27 22:31:43    收藏:0  评论:0  赞:0  阅读:827
iOS中自定义UIView(用接口获取Lable和TextFile中的值)
NSArray *arrayText = @[@"用户名",@"密码",@"确认密码",@"手机号",@"邮箱"]; NSArray *placeholders = @[@"请输入用户名",@"请输入密码",@"请确认密码",@"请输入手机号",@"请输入邮箱"]; NSIn...
分类:移动平台   时间:2015-08-27 22:27:43    收藏:0  评论:0  赞:0  阅读:1210
Android 模拟多线程下载
以下是一个多线程下载的例子,见代码:1、首先是布局文件 1 2 5 6 7 12 13 19 2、然后是对应的Activity文件 1 import android.app.Activity; 2 import android.os.Handler; 3 import a...
分类:移动平台   时间:2015-08-27 22:26:03    收藏:0  评论:0  赞:0  阅读:284
iOS中的手势识别的积累:UIGestureRecognizer
#import "RootViewController.h"#import "UIColor+MyUIColor.h"@interface RootViewController ()@end@implementation RootViewController/* UITapGestureRecogn...
分类:移动平台   时间:2015-08-27 22:25:53    收藏:0  评论:0  赞:0  阅读:313
Android(java)学习笔记197:常见对话框使用AlertDialog.Builder
1.确认取消对话框:AlertDialog.Builder builder = new Builder(this); // 告诉工厂生产什么样的产品 builder.setTitle("友情提醒"); builder.setMessage("若练此功,必先自...
分类:移动平台   时间:2015-08-27 22:25:23    收藏:0  评论:0  赞:0  阅读:272
融云 Android SDK 拍照,图片选择器方案分析
一  拍照 目前拍照融云提供两种方案  1 SDK kit 包中自带的拍照 关键类 : CameraInputProvider  此类点击是唤起 TakingPicturesActivity 特点是拍照后 勾选完成 会有一个预览界面  此方案如果在某些机型上 点击勾选后无响应 是因为 一些机型唤起 系统相机后 把下面的栈资源回收了 已经做了 onSaveInstanceState ...
分类:移动平台   时间:2015-08-27 21:17:03    收藏:0  评论:0  赞:0  阅读:1854
iOS-汤姆猫项目总结
功能分析 点击对应的按钮后,让汤姆猫展现对应的动画步骤分析 1、搭建UI界面 2、监听按钮点击 3、根据点击的按钮执行对应的动画知识点: 1、UIImageView帧动画的使用 2、UIImage的2种加载方式 3、重复代码的封装抽取 4、文档注释的写法UIImageView帧动画相关属性和方法 @property(nonatomic,copy) NSArray *animatio...
分类:移动平台   时间:2015-08-27 21:15:23    收藏:0  评论:0  赞:0  阅读:360
Android中ActionBar居中
经常会用到将ActionBar文字居中的问题,这里写个代码如下: //把actionBar的文字标题居中 public static void centerActionBarTitle(Activity activity) { int titleId = activity.getResources().getIdentifier("action_bar_t...
分类:移动平台   时间:2015-08-27 21:15:03    收藏:0  评论:0  赞:0  阅读:319
android屏幕适配解决方案
屏幕尺寸:屏幕对角线的长度 单位英寸,1英寸=2.54厘米 分辨率在横纵线上的像素点数 单位是px,1px=1个像素点 一般以纵向像素*横向像素,如1920*1080 屏幕像素密度指每英寸上的像素点数(屏幕对角线上) 单位dpi,与屏幕尺寸和屏幕像素有关 1920*1080 dpi=445计算方式:sqrt{1920^2+1080^2}/尺寸(4.95对角线) px,dp,dip,spdp dip是...
分类:移动平台   时间:2015-08-27 21:14:33    收藏:0  评论:0  赞:0  阅读:238
一个简单的Demo教你:Android和JS的互相调用
搜了一下简单的示例,发现很多贴代码片段的,却没有没有贴完整项目的,自己稍微整理一下,给那些第一次接触JS和Java互相调用的同学。文章最后有项目源码地址。 -JS调用Java方法示例 function javaCallJsFunction(isHide) { va...
分类:移动平台   时间:2015-08-27 21:13:03    收藏:0  评论:0  赞:0  阅读:375
新建 Android 测试工程
File--Project 选择Android----AndroidTest Project 按红色框框选择 选择APK 运行的版本,模拟器创建时用什么版本,此处就选什么版本 我的机器因为只有17所以我 选用的是17 API 点完成   在测试工程目录下新建Lib 目录 复制Robotium,jarjxl.jar ...
分类:移动平台   时间:2015-08-27 21:12:23    收藏:0  评论:0  赞:0  阅读:315
Android UI 绘制过程浅析(三)layout过程
前言 上一篇blog中,了解到measure过程对View进行了测量,得到measuredWidth/measuredHeight。对于ViewGroup,则计算出全部children的宽高进行求和。本篇来分析一下layout过程。layout综述 layout方法对一个View及它的后代分配s.....
分类:移动平台   时间:2015-08-27 21:08:23    收藏:0  评论:0  赞:0  阅读:285
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!