判断scrollView有没有滚动到视图的底部,用来判断下拉刷新的时间。等 - (void)scrollViewDidScroll:(UIScrollView *)scrollView1 { CGPoint offset = scrollView1.contentOffset; ...
分类:
移动开发 时间:
2014-08-05 13:30:39
阅读次数:
226
由于本周开始编写 宝石迷阵这款益智游戏,其中涉及到的两个效果我觉得很有趣。 手风琴:点击一级餐单,二级菜单动态弹出;再次点击一级菜单,二级菜单缩回; ????????实现方法如下: ????????首先...
分类:
其他好文 时间:
2014-08-05 11:42:29
阅读次数:
241
contentOffset默认CGPointZero,用来设置scrollView的滚动偏移量。//设置scrollView的滚动偏移量 scrollView.contentOffset=CGPointMake(0,200);contentSize默认CGSizeZero,用来设置scrollVie...
分类:
其他好文 时间:
2014-08-05 00:18:38
阅读次数:
212
今天做了一个ScrollView的小例子(我的环境Xcode5 IOS7),结果发现无法滚动,即使设置了scrollView的contentSize还是不行,于是研究了一番,最终找到了解决方案: 在ios6之前,因为Xcode没有Autolayout的机制,所以直接使用scrollView,设置它的...
分类:
其他好文 时间:
2014-08-04 21:06:07
阅读次数:
205
if ([self.navigationController respondsToSelector:@selector(interactivePopGestureRecognizer)]) { self.navigationController.interactivePopGestur...
分类:
移动开发 时间:
2014-08-04 13:56:17
阅读次数:
233
Document 菜单1 菜单2 菜单3 菜单4 菜单5 菜单6 菜单7 菜单8 菜单9
分类:
Web程序 时间:
2014-08-04 10:50:37
阅读次数:
239
效果图:
使用方法:
setLayoutType(cocos2d::ui::Layout::Type::RELATIVE);
auto winSize = Director::getInstance()->getWinSize();
auto tableFormLayout = T...
分类:
其他好文 时间:
2014-08-03 23:22:26
阅读次数:
376
The demo generatefrom 北京尚学堂package com.example.scrollview;import android.support.v7.app.ActionBarActivity;import android.support.v7.app.ActionBar;impo...
分类:
其他好文 时间:
2014-08-02 20:52:34
阅读次数:
334
1,如果用户在一个屏幕上添加了多个组件,则可以使用ScrollView进行包装实现滚动的效果,但是ScrollView组件只能对一个组件进行包装。
2,ListView可以实现数据的列表显示,可以通过SimpleAdapter类实现数据的封装。
3,对话框可以进行信息的提示,用户可以使用系统定义的对话框显示,也可以通过布局管理器定义自己的对话框显示布局。
4,Auto...
分类:
移动开发 时间:
2014-08-02 15:37:43
阅读次数:
252
///////////注flowView为UIView////////////添加滑动手势事件UIPanGestureRecognizer*gestureRecognizer=[[UIPanGestureRecognizeralloc]initWithTarget:flowViewaction:@s...
分类:
其他好文 时间:
2014-08-01 22:40:02
阅读次数:
261