大连东软信息学院镜像服务器地址:-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
响应者链就是当子视图不响应,父视图有响应事件,父视图响应#import "RootViewController.h"#import "ResponderView.h"@interface RootViewController ()@end@implementation RootViewControl...
分类:
移动平台 时间:
2015-08-27 22:44:33
收藏:
0 评论:
0 赞:
0 阅读:
344
#import "AppDelegate.h"@interface AppDelegate ()@end@implementation AppDelegate- (BOOL)application:(UIApplication *)application didFinishLaunchingWith...
分类:
移动平台 时间:
2015-08-27 22:44:23
收藏:
0 评论:
0 赞:
0 阅读:
273
//// 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
#import "RootViewController.h"@interface RootViewController ()@end@implementation RootViewController- (void)viewDidLoad { [super viewDidLoad]; /...
分类:
移动平台 时间:
2015-08-27 22:41:53
收藏:
0 评论:
0 赞:
0 阅读:
332
>通过storyboard创建>直接创建YTViewController *yt = [[YTViewController alloc]init];>指定xib文件来创建YTViewController *yt = [[YTViewController alloc]initWithNibName:@...
分类:
移动平台 时间:
2015-08-27 22:35:14
收藏:
0 评论:
0 赞:
0 阅读:
276
#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
#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
Appdelegate中- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { self.window = [[[UIWindo...
分类:
移动平台 时间:
2015-08-27 22:31:43
收藏:
0 评论:
0 赞:
0 阅读:
827
NSArray *arrayText = @[@"用户名",@"密码",@"确认密码",@"手机号",@"邮箱"]; NSArray *placeholders = @[@"请输入用户名",@"请输入密码",@"请确认密码",@"请输入手机号",@"请输入邮箱"]; NSIn...
分类:
移动平台 时间:
2015-08-27 22:27:43
收藏:
0 评论:
0 赞:
0 阅读:
1210
以下是一个多线程下载的例子,见代码: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
#import "RootViewController.h"#import "UIColor+MyUIColor.h"@interface RootViewController ()@end@implementation RootViewController/* UITapGestureRecogn...
分类:
移动平台 时间:
2015-08-27 22:25:53
收藏:
0 评论:
0 赞:
0 阅读:
313
1.确认取消对话框:AlertDialog.Builder builder = new Builder(this); // 告诉工厂生产什么样的产品 builder.setTitle("友情提醒"); builder.setMessage("若练此功,必先自...
分类:
移动平台 时间:
2015-08-27 22:25:23
收藏:
0 评论:
0 赞:
0 阅读:
272
一 拍照
目前拍照融云提供两种方案
1 SDK kit 包中自带的拍照 关键类 : CameraInputProvider
此类点击是唤起 TakingPicturesActivity 特点是拍照后 勾选完成 会有一个预览界面 此方案如果在某些机型上 点击勾选后无响应 是因为
一些机型唤起 系统相机后 把下面的栈资源回收了 已经做了 onSaveInstanceState ...
分类:
移动平台 时间:
2015-08-27 21:17:03
收藏:
0 评论:
0 赞:
0 阅读:
1854
功能分析
点击对应的按钮后,让汤姆猫展现对应的动画步骤分析
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
经常会用到将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
屏幕尺寸:屏幕对角线的长度
单位英寸,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
搜了一下简单的示例,发现很多贴代码片段的,却没有没有贴完整项目的,自己稍微整理一下,给那些第一次接触JS和Java互相调用的同学。文章最后有项目源码地址。
-JS调用Java方法示例
function javaCallJsFunction(isHide) {
va...
分类:
移动平台 时间:
2015-08-27 21:13:03
收藏:
0 评论:
0 赞:
0 阅读:
375
File--Project
选择Android----AndroidTest Project
按红色框框选择
选择APK 运行的版本,模拟器创建时用什么版本,此处就选什么版本
我的机器因为只有17所以我 选用的是17 API
点完成
在测试工程目录下新建Lib 目录
复制Robotium,jarjxl.jar ...
分类:
移动平台 时间:
2015-08-27 21:12:23
收藏:
0 评论:
0 赞:
0 阅读:
315
前言 上一篇blog中,了解到measure过程对View进行了测量,得到measuredWidth/measuredHeight。对于ViewGroup,则计算出全部children的宽高进行求和。本篇来分析一下layout过程。layout综述 layout方法对一个View及它的后代分配s.....
分类:
移动平台 时间:
2015-08-27 21:08:23
收藏:
0 评论:
0 赞:
0 阅读:
285