1.UIScrollView是可以滚动的view,UIView本?身不能滚动,子类UIScrollview拓展了滚动?方?面的功能。2.UIScrollView是所有滚动视图的基类。以后的UITableView,UITextView等视图都是继承于该类。3.UIScrollview主要专?长于两个?方?面:(1).滚动:contentSize?大于frame.size的时候,能够滚动。
(2).缩...
分类:
其他好文 时间:
2015-08-08 23:01:54
阅读次数:
158
Android平台采用了软件堆层(Software Stack)的架构,主要分为四个部分:1.应用软件 Android 连同一个核心应用程序包一起发布,该应用程序包包括E-mail客户端、SMS短消息程序、日历、地图、浏览器、联系人管理程序等。所有的应用程序都是用Java编写的。2.应用程序框架 ....
分类:
移动开发 时间:
2015-08-08 22:48:13
阅读次数:
176
毛玻璃效果原图片:
效果图
1. 先创建一个视图例子:UIImageView *imageView =[[UIImageView alloc] initWithImage:[UIImage imageNamed:@"12.jpg"]];
imageView.frame =CGRectMake(0, 0, self.view.frame.size.width, 400);
[s...
分类:
其他好文 时间:
2015-08-08 21:23:32
阅读次数:
133
Design a stack that supports push, pop, top, and retrieving the minimum element in constant time.push(x) -- Push element x onto stack.pop() -- Removes...
分类:
其他好文 时间:
2015-08-08 21:20:06
阅读次数:
156
在自定义导航条左按钮的时候发现按钮的位置向右偏移,下面给出了解决方法// 设置导航条的左按钮 UIButton *leftButton = [UIButton buttonWithType:UIButtonTypeCustom]; leftButton.frame = CGRectMake(0,.....
分类:
其他好文 时间:
2015-08-08 19:52:53
阅读次数:
89
堆栈
【链表实现堆栈】
优点:可以无限增添元素,只要内存足够,
缺点:内存中存储位置不连续
typedef int ElementType;
//只能向头部插入元素,因为如果在尾部插入,删除时,找不到上一个节点/
//因为链表是单向的
//所以 push pop 操作在头结点进行
class Stack{
public:
Stack(){
S=(Stack*)malloc(...
分类:
编程语言 时间:
2015-08-08 18:20:10
阅读次数:
164
要往scrollView里面添加子控件--从向往下排 0.设置scrollView的上下左右约束距离控制器view边距为零(确定frame的大小) 1.要往scrollView添加一个内容View 2.约束内容的View左上右边距离父控件为0 3.约束死内容的View的高度 4....
分类:
其他好文 时间:
2015-08-08 16:28:40
阅读次数:
108
Implement the following operations of a stack using queues.push(x) -- Push element x onto stack.pop() -- Removes the element on top of the stack.top()...
分类:
其他好文 时间:
2015-08-08 14:54:53
阅读次数:
98
一 UIVIew 常见属性1.frame 位置和尺寸(以父控件的左上角为原点(0,0))2.center 中点 (以父控件的左上角为原点(0,0))3.bounds 位置和尺寸(以自己的左上角为原点 (0,0))4.transform 形变属性(缩放,旋转)5.backgroundColor 背景颜...
分类:
移动开发 时间:
2015-08-08 13:26:50
阅读次数:
185
@当我们在一个UIViewController中同时创建2个tableView的时候,如果把它们的frame中的Y坐标设置为一样,你可能会发现它们的位置并没有达到你想要的结果.比如第一tableView个frame(0,0,320,568),另一个也frame(0,0,320,568),结果会发现第...
分类:
移动开发 时间:
2015-08-08 13:25:29
阅读次数:
129