IOS中的frame 和 tableView的滑动问题
2013-07-18 11:17
656 查看
Popover
push 时 Frame无法改变解决办法
在popover中的ViewController中实现:
- (void)viewWillAppear:(BOOL)animated
{
CGSize size = CGSizeMake(320, 480); // size of view in popover
self.contentSizeForViewInPopover = size;
[super viewWillAppear:animated];
}
tableview
滑动导致 NSTimer和delegate 回调停止 解决办法
// request回调
NSURLRequest *request = ...
NSURLConnection *connection = [[NSURLConnection alloc]
initWithRequest:request
delegate:self
startImmediately:NO];
[connection scheduleInRunLoop:[NSRunLoop currentRunLoop]
forMode:NSRunLoopCommonModes];
[connection start];
//timer 回调
NSTimer *updateTimer = [NSTimer scheduledTimerWithTimeInterval:0.01f target:self selector:@selector(updatePencent) userInfo:nil repeats:YES];
NSRunLoop *main=[NSRunLoop currentRunLoop];
[main addTimer:updateTimer forMode:NSRunLoopCommonModes];
push 时 Frame无法改变解决办法
在popover中的ViewController中实现:
- (void)viewWillAppear:(BOOL)animated
{
CGSize size = CGSizeMake(320, 480); // size of view in popover
self.contentSizeForViewInPopover = size;
[super viewWillAppear:animated];
}
tableview
滑动导致 NSTimer和delegate 回调停止 解决办法
// request回调
NSURLRequest *request = ...
NSURLConnection *connection = [[NSURLConnection alloc]
initWithRequest:request
delegate:self
startImmediately:NO];
[connection scheduleInRunLoop:[NSRunLoop currentRunLoop]
forMode:NSRunLoopCommonModes];
[connection start];
//timer 回调
NSTimer *updateTimer = [NSTimer scheduledTimerWithTimeInterval:0.01f target:self selector:@selector(updatePencent) userInfo:nil repeats:YES];
NSRunLoop *main=[NSRunLoop currentRunLoop];
[main addTimer:updateTimer forMode:NSRunLoopCommonModes];
相关文章推荐
- IOS中的frame 和 tableView的滑动问题
- ios键盘弹起tableView的滑动区域问题
- iOS 在tableView上添加button导致按钮没有点击效果和不能滑动的问题
- ios 小问题,滑动tableview,导航出去,再回来会保持原样,但我想自动保持顶部
- iOS中3DTouch预览导致TableView滑动卡顿问题解决的方法
- ios tableview section标题不滑动问题
- iOStableView 自动布局常见问题之页面滑动到最底时,下面多出44的距离!
- iOS tableView滑动卡顿的问题之一
- IOS TableView滑动不灵敏问题
- ios tableview 小问题总结
- iOS TableView分割线左边少一截问题
- iOS xib创建UIScrollView不滑动问题解决
- iOS开发UITableView篇:[self.tableView reloadData]执行时间过长问题解决历程
- IOS TableView 动画相关问题(个人)
- iOS中tableview 中编辑,删除与多选中的问题(一)
- IOS 非常流畅的滑动tableView
- [iOS] 判断tableView向上或向下滑动
- 【iOS】TableView的footerView不随cell滚动而停留在tableView底部的问题
- iOS-NSTimer在用户操作tableView时暂停的问题。
- ios tableView滑动动画