package java.util;import java.util.Map.Entry; /** * This class provides a skeletal implementation of the Map * interface, to minimize the effort requi...
分类:
其他好文 时间:
2014-12-24 17:37:33
阅读次数:
181
Category 分类
可以直接给别的类添加方法而不改变原来的类
只能增加方法 不能增加成员变量(可以访问以前类中的)
建立方法是 xcode新建类->Category
h文件
@surface class (ca)
@endm文件
@implementation class (ca)
{
}
@end
id 万能指针
(oc对象)
比如
class *c = [class ...
分类:
其他好文 时间:
2014-12-23 19:40:16
阅读次数:
136
ios数字钟的实现
数字钟的创建,我们首先的准备一些参数:代码如下:
#import "AppDelegate.h"
@implementation AppDelegate
{
UILabel * _yearLabel;
UILabel * _monthLabel;
UILabel * _dayLabel;
UILa...
分类:
移动开发 时间:
2014-12-23 17:27:12
阅读次数:
163
利用设备的机载陀螺仪可以实现,当你旋转手机屏幕时,里面的画面不会随着视图更新而移动,以平衡物理运动。下面例子利用少量简单的几何变换执行该操作。他建立一个运动管理器,订阅设备运动更新,然后基于运动管理器返回的摇晃,前倾和左右摇摆的角度应用图像变换。@implementation TestBedView...
分类:
移动开发 时间:
2014-12-23 13:43:09
阅读次数:
191
#import @implementation MD5Util+(NSString *)encode:(NSString *)value{ [value retain]; const char *cStr = [value UTF8String]; [value release]; unsigne....
分类:
移动开发 时间:
2014-12-23 10:16:25
阅读次数:
250
1 #import "UITestAppAppDelegate.h" 2 3 @implementation UITestAppAppDelegate 4 5 @synthesize window; 6 @synthesize img; 7 8 - (void) applicationDid...
分类:
其他好文 时间:
2014-12-21 23:21:27
阅读次数:
204
本文以新浪微博的Oauth认证为例子进行Post请求的演示
下面直接上代码:
#import "ViewController.h"
#import "AFNetworking.h"
@interface ViewController ()
@end
@implementation ViewController
- (void)viewDidLoad {
[super viewD...
分类:
Web程序 时间:
2014-12-21 16:41:36
阅读次数:
397
对象方法和类方法的区别和概念,大家都知道,关于两者之间的相互调用,本人小有总结#import "NSString+WW.h"@implementation NSString (WW)//类方法------------------------+(int )numberCountOfString:(NS...
分类:
其他好文 时间:
2014-12-20 19:29:36
阅读次数:
163
from:http://oracle-base.com/articles/10g/utl_dbws-10g.phpIn a previous article I presented a method for Consuming Web Services using a basic SOAP implementation. This article provides similar function...
分类:
数据库 时间:
2014-12-19 19:11:47
阅读次数:
625
模糊效果,使用FXBlurView这个第三方库可以很轻松的实现这一功能。
效果:
下面来看一下实现,ViewController.m
#import "ViewController.h"
#import "FXBlurView.h"
@interface ViewController ()
@end
@implementation ViewController
- (void...
分类:
移动开发 时间:
2014-12-19 19:07:43
阅读次数:
180