当前位置: 编程技术>移动开发
本页文章导读:
▪UITableView高级技艺根据按钮位置取indexPath UITableView高级技巧根据按钮位置取indexPath
通到取得在tableView中的位置,取得所在indexPathUIButton *button = sender; CGPoint correctedPoint = [button convertPoint:button.bounds.origin toView:self.myTableView]; N.........
▪ jQuery兑现的书本翻页动画效果源码 jQuery实现的书本翻页动画效果源码
jQuery书本翻页动画效果,这是一款基于jQuery的书本翻页特效,这款翻页插件非常适合你应用在在线阅读上,这个翻页插件可以让用户有真实的阅读感觉。
.........
▪ NotifiCationCenter统制使用 NotifiCationCenter控制使用
NSNotificationCenter第一种,这个只是传值,通过NSNotification获取,当然也可以直接使用obj注册A
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(enableOrDisableAudio:) nam.........
[1]UITableView高级技艺根据按钮位置取indexPath
来源: 互联网 发布时间: 2014-02-18
UITableView高级技巧根据按钮位置取indexPath
通到取得在tableView中的位置,取得所在indexPath
UIButton *button = sender;
CGPoint correctedPoint = [button convertPoint:button.bounds.origin toView:self.myTableView];
NSIndexPath *indexPath = [self.myTableView indexPathForRowAtPoint:correctedPoint];
通到取得在tableView中的位置,取得所在indexPath
UIButton *button = sender;
CGPoint correctedPoint = [button convertPoint:button.bounds.origin toView:self.myTableView];
NSIndexPath *indexPath = [self.myTableView indexPathForRowAtPoint:correctedPoint];
[2] jQuery兑现的书本翻页动画效果源码
来源: 互联网 发布时间: 2014-02-18
jQuery实现的书本翻页动画效果源码
jQuery书本翻页动画效果,这是一款基于jQuery的书本翻页特效,这款翻页插件非常适合你应用在在线阅读上,这个翻页插件可以让用户有真实的阅读感觉。
建议开发童鞋使用跨平台开发工具——统一开发环境UDE来进行查看、调试、开发哦~~它是一款HTML5跨平台一站式应用开发、调试和部署工具, 支持HTML5跨平台开发,原Java跨平台插件支持Android/Symbian/Kjava的跨平台和原生开发,为开发者提供丰富的应用模板、示例代码及开发者社区服务,已覆盖Android、iOS、WP、Symbian、Kjava操作系统平台。
UDE模拟器调试效果图:
Demo
源码下载请见附件
[3] NotifiCationCenter统制使用
来源: 互联网 发布时间: 2014-02-18
NotifiCationCenter控制使用
第一种,这个只是传值,通过NSNotification获取,当然也可以直接使用obj
注册A
响应B
第二种多值传输(obj)
注册A
响应B
数组传输,注意响应消息的userInfo一定是NSDictionary类型
NSNotificationCenter
第一种,这个只是传值,通过NSNotification获取,当然也可以直接使用obj
注册A
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(enableOrDisableAudio:) name:@"enableOrDisableAudio" object:nil];
- (void)enableOrDisableAudio:(NSNotification *)notification
{
printf("enableOrDisableAudio\n");
BOOL bIsEnableAudio = [[notification object] boolValue];
self.m_bIsEnable = bIsEnableAudio;
[self enableAudio:bIsEnableAudio];
}
响应B
NSNumber *boolNum = [NSNumber numberWithBool:m_bIsSPKOn];
[[NSNotificationCenter defaultCenter] postNotificationName:@"enableOrDisableAudio" object:boolNum];
第二种多值传输(obj)
注册A
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(reachabilityChanged:) name:kReachabilityChangedNotification object: nil];
- (void)reachabilityChanged:(NSNotification *)note
{
Reachability *curRech = [note object];
NetworkStatus status = [curRech currentReachabilityStatus];
if (status == NotReachable)
{
[self setStatusBarToShow];
[SVStatusHUD showWithMessage:Localized(@"disconnect from network") duration:KShortDuration];
}
else
{
[self resetStatusBarBlank];
}
}
响应B
Reachability* noteObject = (Reachability*) info; // Post a notification to notify the client that the network reachability changed. [[NSNotificationCenter defaultCenter] postNotificationName: kReachabilityChangedNotification object: noteObject];
数组传输,注意响应消息的userInfo一定是NSDictionary类型
- (void) keyboardWillShow:(NSNotification *)aNotification
{
NSDictionary *userInfo = [aNotification userInfo];
}
最新技术文章: