1. Menu Three fundamental types of menus or action presentation on all versions of Android: Option menu and action bar Android 2.3 or lower, reve...
分类:
其他好文 时间:
2014-11-05 19:02:56
阅读次数:
178
AIDL (Android Interface Definition Language) 是一种IDL 语言,用于生成可以在Android设备上两个进程之间进行进程间通信(interprocess communication, IPC)的代码。如果在一个进程中(例如Activity)要调用另一个进程中(例如Service)对象的操作,就可以使用AIDL生成可序列化的参数。本文简单介绍AIDL的使用...
分类:
系统相关 时间:
2014-11-05 17:15:31
阅读次数:
238
API(Application Programming Interface,应用程序编程接口)
是一些预先定义的函数,目的是提供应用程序与开发人员基于某软件或硬件的以访问一组例程的能力,而又无需访问源码,或理解内部工作机制的细节。 运行Java程序时,虚拟机装载程序的class文件所使用的Java ...
分类:
编程语言 时间:
2014-11-05 16:56:38
阅读次数:
204
1. Input Controls 2. Buttons A button consists of text or an icon (or both text and an icon) that communicates what action occurs when the user touc.....
分类:
其他好文 时间:
2014-11-05 16:43:35
阅读次数:
135
1:创建一个model数据模型#import @interface DataModel : NSObject//保存section中每行的数据@property(nonatomic,strong)NSMutableArray *array;//section名@property(nonatomic,...
分类:
其他好文 时间:
2014-11-05 16:33:48
阅读次数:
125
用法:在abstract class方式中,类可以有自己的数据成员,也可以有非 abstract的成员方法,而在interface方式的实现中,类只能够有静态的不能被修改的数据成员(也就是必须是static final 的,不过在interface中一般不定义数据成员),所有的成员方法都是abstr...
分类:
编程语言 时间:
2014-11-05 12:48:43
阅读次数:
177
http://hi.baidu.com/lzpsky/item/f9a727ba823257eb4ec7fd27一、简介JNDI: Java Naming and Directory Interface (JNDI) 首先关于jndi的配置网上资料很多,但大多都不是我想要的,原因很简单,改的配置文件...
分类:
编程语言 时间:
2014-11-05 10:26:42
阅读次数:
254
重开发者的劳动成果,请勿转载
构造方法
出于初始化类中的成员变量的需要, 可以提供一个方法用于此目的,
这个方法就叫构造方法或构造方法(Constructor)。
与C++和Java不同, Objective-C命名是没有限制的, 并且有返回值本身类型指针。
以音乐类举例:
Song.h文件
@interface Song : NSObject {
NSString...
分类:
其他好文 时间:
2014-11-05 01:54:04
阅读次数:
270
#import "RootViewController.h"
#import "RootView.h"
@interface RootViewController ()
@property(nonatomic,retain)RootView *myview;
@end
@implementation RootViewController
- (id)initWithNibName:(NSSt...
分类:
移动开发 时间:
2014-11-04 22:44:59
阅读次数:
312
在QQ群里面看到有人问保存图片到自定义相册的办法:直接上代码:#import #import typedef void(^SaveImageCompletion)(NSError* error);@interface ALAssetsLibrary(CustomPhotoAlbum)-(void)s...
分类:
移动开发 时间:
2014-11-04 22:25:05
阅读次数:
326