main.h#import<UIKit/UIKit.h>
#import"AppDelegate.h"
intmain(intargc,char*argv[])
{
//app的启动流程
//1.一个iOS程序的启动,在main函数开始
@autoreleasepool{
//应用程序的启动函数作用:1,启动一个时间循环,确保程序一直在执行2.创建一个应用程序对象,3.指定..
分类:
其他好文 时间:
2014-09-02 10:37:54
阅读次数:
242
首先创建一个视图NioLampViewController类AppDelegate.h#import<UIKit/UIKit.h>
@interfaceAppDelegate:UIResponder<UIApplicationDelegate>
@property(strong,nonatomic)UIWindow*window;
@endAppDelegate.m#import"AppDelegate.h"
#import"NioLampViewController..
分类:
其他好文 时间:
2014-09-02 10:37:25
阅读次数:
407
gic是generic interrupt controler的简称,gic逻辑上可以分为两部分,distributor和CPU interface,分别有很多个寄存器组成;
distributor的作用是集中管理所有中断源,配置中断的优先级,向各个CPU interface配送最高优先级的中断,中断屏蔽、中断抢占、配置中断是边缘出发还是水平触发。
CPU interface的作用更像是一个门...
分类:
其他好文 时间:
2014-09-02 00:25:03
阅读次数:
316
iOS开发网络篇—发送json数据给服务器以及多值参数一、发送JSON数据给服务器发送JSON数据给服务器的步骤:(1)一定要使用POST请求(2)设置请求头(3)设置JSON数据为请求体代码示例: 1 #import "YYViewController.h" 2 3 @interface YYV....
分类:
移动开发 时间:
2014-09-01 22:35:03
阅读次数:
226
目标: 主从表关系 : 点击“省份名称” - 显示“城市列表”#import "MainTableViewController.h"#import "ShiTableViewController.h"@interface MainTableViewController ()//省份数组@prope....
分类:
其他好文 时间:
2014-09-01 15:25:53
阅读次数:
154
spring 从3.x就提供了cache接口,spring默认实现的缓存是ehcache,spring的cache接口:
public interface Cache {
String getName();
Object getNativeCache();
ValueWrapper get(Object key);
T get(Object key, Class type);
v...
分类:
编程语言 时间:
2014-09-01 12:38:13
阅读次数:
303
// 设置 maven 库地址repositories { maven { url 'http://maven.oschina.net/content/groups/public/' }}这样设置可以使用oschina的maven库,下载速度很快作者:原文地址:http://www.factj.c....
分类:
其他好文 时间:
2014-09-01 12:30:13
阅读次数:
697
错误: 创建实例 "RuiyTest23" 失败: 请稍后再试 [错误: Virtual Interface creation failed]. 最近在centos6.4上通过devstack搭建OpenStack Icehouse,但是在创建instance时候报错:Virtual Interfa...
分类:
其他好文 时间:
2014-09-01 12:00:43
阅读次数:
227
第一个区别当然是名字: ???? SPI(Serial Peripheral Interface:串行外设接口); ???? I2C(INTER IC BUS) ???? UART(Universal Asynchronous Receiver Transmitter:通用异步收发器) 第二,区别在电气...
分类:
其他好文 时间:
2014-09-01 10:55:43
阅读次数:
187
题目如下: interface Foo{} class Alpha implements Foo{} class Beta extends Alpha{} public class Delta extends Beta{ public static void main(String[] args){...
分类:
其他好文 时间:
2014-09-01 00:14:22
阅读次数:
247