UIScrollview一直显示滚动条,使用UIImageView自定义滚动条
@interface ViewController ()UIScrollViewDelegate>
{
UIScrollView *backScrollView;
UIImageView *scrollIndexerImageView;
}
@end
...
分类:
其他好文 时间:
2014-12-15 19:05:23
阅读次数:
223
在项目开发中遇到下面几个问题:
1. 有些viewcontroller是中间界面(或者叫做过渡界面)是不能返回的
2. 有时候,想更新一下已经push到navigationController中的viewController。
3. 前两个结合的情况。...
分类:
其他好文 时间:
2014-12-14 18:38:07
阅读次数:
161
iphone开发出现警告:Sending 'ViewController *const __strong' to parameter of incompatible type 'id'
原因是没有在头文件实现相应协议。
解决方法是在头文件中
@interface 一行后面加上...
分类:
其他好文 时间:
2014-12-13 21:52:17
阅读次数:
814
ViewController的生命周期分析和使用...
分类:
其他好文 时间:
2014-12-13 21:50:09
阅读次数:
279
#import "ViewController.h"@interface ViewController ()@end@implementation ViewController- (void)viewDidLoad{ [super viewDidLoad]; [self testDynamic...
分类:
移动开发 时间:
2014-12-12 16:09:27
阅读次数:
139
添加字体到项目当中最终显示字体的效果:步骤如下:1. 安装字体2. 修改plist文件 (UIAppFonts 复制粘贴)3. 引用字体4. 效果图源码://// ViewController.m// UIFont//// Created by YouXianMing on 14/12/11....
分类:
其他好文 时间:
2014-12-11 23:52:52
阅读次数:
302
//// ViewController.m// TomCat//// Created by xiaomoge on 14/12/10.// Copyright (c) 2014年 xiaomoge. All rights reserved.//#import "ViewController....
分类:
其他好文 时间:
2014-12-11 22:20:14
阅读次数:
197
以前经常把这两个东西当成一回事, PageViewController像电子书那样,一页之中可以放几个childViewcontroller, 然后左右翻,当前frame显示几个viewcontroller。 UIPageControl配合scrollView是用于左右滑动翻页的,当前frame只显...
分类:
其他好文 时间:
2014-12-11 18:54:15
阅读次数:
196
使用storyboard设计静态的表格数据 A.实现步骤 1.控制器继承UITableViewController 2.在storyboard中使用TableViewController,删除原来的ViewController 3.设置class 4.设置新的View Controller为程序入口...
分类:
移动开发 时间:
2014-12-11 18:43:54
阅读次数:
229
1.ViewController的生命周期
按结构可以对iOS的所有ViewController分成两类:
1、主要用于展示内容的ViewController,这种ViewController主要用于为用户展示内容,并与用户交互,如UITableViewController,UIViewController。
2、用于控制和显示其他ViewController的ViewControl...
分类:
移动开发 时间:
2014-12-11 15:49:13
阅读次数:
537