ITeye博客

sinaier的博客

sinaier · 共 42 篇文章

浅谈iPhone 中Push 功能原理 推送通知(收藏)

iPhone 中Push 功能原理 推送通知是本文要介绍的内容,主要讲述了PUSH的一些功能,具体内容先来看本文讲述。 Push原理 (以下绝大多数内容参考自、图片来自iPhone OS Reference Library) 机制简介 Push 的工作机制可以简单的概括为下图 图中, Provider是指某个iPhone软 件的Push服务器。 APNS 是Apple Push Notification Service(Apple Push服务器)的缩写,下文统一使用该缩写。 因 此,整个过程可以分为三个阶段,下面用大家常用的聊天客户端BeejiveIM来说明。(BeejiveIM是一款支持…

2011-11-21 19:55 · 评论(0)

iPhone 开发 实现图片显示圆角效果

/* 设置图片圆角begin / asyncImage.layer.masksToBounds = YES; asyncImage.layer.cornerRadius = 5.0; asyncImage.layer.borderWidth = 0.5; asyncImage.layer.borderColor = CGColor];

2011-11-21 19:45 · 评论(0)

iphone camera

iphone camera iphone cameraiphone camera iphone camera iphone camera

2011-11-21 12:23 · 评论(0)

searchbar

asdfdsfaaaaafasddddddddddddd

2011-10-27 19:54 · 评论(0)

appirater

Getting Started Add the Appirater code into your project Add the CFNetwork and SystemConfiguration frameworks to your project Call at the end of your app delegate's application:didFinishLaunchingWithOptions: method. Call in your app delegate's applicationWillEnterForeground: method. (OPTIONAL) Call…

2011-10-24 22:43 · 评论(0)

模糊搜索

(void)filterContentForSearchText:(NSString*)searchText scope:(NSString*)scope { ; // First clear the filtered array. for (Product *product in tableData) { NSPredicate *predicate = %@)", searchText]; ; BOOL resultID = ; BOOL resultName = ; if( && resultID) { ; } if( && resultName) { ; } if( && (resu…

2011-10-24 22:25 · 评论(0)

如何实现点击UIWebView中链接调用Safari打开目标链接

-(BOOL)webView:(UIWebView *)webView shouldStartLoadWithRequest:(NSURLRequest *)request navigationType:(UIWebViewNavigationType)navigationType; { NSURL *requestURL = retain ]; if ( ( isEqualToString: @"http" ] || isEqualToString: @"https" ] || isEqualToString: @"mailto" ]) && ( navigationType == UIW…

2011-10-24 11:05 · 评论(0)

navigation

首先要明确的是,不使用pushViewController的默认动画,所以在调用这个函数时,要将animated设置为NO. 使用普通的来CATransition实现转换效果,代码如下: CATransition *animation = ; ; ; ; ]; ; ;

2011-10-19 22:13 · 评论(0)

viewcontroller

在静态函数中如何获取当前视图? .keyWindow.rootViewController ] 怎么获取当前的视图controller? 01.-(void) myCommonMethod:(UIViewController*) aViewController 02.{ 03. if() 04. { 05. } 06. else if() 07. { 08. 09. } 10.} 如何获取当前视图中成为第一响应者的组件,并取消注册 UIWindow *keyWindow = keyWindow]; UIView *firstResponder = ; ;

2011-10-19 12:27 · 评论(0)

当用户按下HOME键时

#pragma mark - #pragma mark 按下HOME键时的通知 -(void)pressHome:(NSNotification *) notification{ NSLog(@'pressHome......'); } #pragma mark - View lifecycle (void)viewDidLoad { //注册一个通知,当用户按下HOME键时 执行pressHome:方法 UIApplication *app = ; addObserver:self selector:@selector(pressHome:) name:UIApplicationDidEn…

2011-10-19 12:25 · 评论(0)

柱形图 收藏

柱形图 收藏柱形图 收藏柱形图 收藏柱形图 收藏柱形图 收藏柱形图 收藏

2011-10-10 17:17 · 评论(0)

ios 动画收藏

ios 动画收藏ios 动画收藏ios 动画收藏ios 动画收藏ios 动画收藏ios 动画收藏 label 手势

2011-10-10 17:07 · 评论(0)

小例子 收藏

收藏的小例子

2011-10-09 18:44 · 评论(0)

cocos2d 0.993

0.993 cocos2d cocos2d

2011-09-18 23:29 · 评论(0)

coverflow(收藏)

jhsdfdfskkhdfs

2011-09-16 17:30 · 评论(0)