- 博客(10)
- 收藏
- 关注
原创 IOS数据库操作SQLite3使用详解
iPhone中支持通过sqlite3来访问iPhone本地的数据库。具体使用方法如下1:添加开发包libsqlite3.0.dylib首先是设置项目文件,在项目中添加iPhone版的sqlite3的数据库的开发包,在项目下的Frameworks点击右键,然后选择libsqlite3.0.dylib文件。libsqlite3.0.dylib文件地址: /Developer/Platforms/iP
2015-03-02 10:59:48 310
原创 UINavigationController,UINavigationBar
1.UINavigationController是用于构建分层应用程序的主要工具,它维护了一个视图控制器栈,任何类型的视图控制器都可以放入.它在管理,以及换入和换出多个内容视图方面,与UITabBarController(标签控制器)类似. 两者间的主要不同在于: UINavigationController是作为栈来实现,它更适合用于处理分层数据.它还有一个作用是用作顶部菜单。 根控制器,子控制器
2015-03-02 10:55:06 271
原创 UIPickerView使用DEMO
@interface Set_starViewController : UIViewController{ UIPickerView *pickerview; UILabel *contentview; NSArray *content;//星座 id _delegate; int _type; }-(id)initWithDelegate:(
2015-03-02 10:52:00 346
原创 UIPageController与UIScrollView的联合使用
(id)initWithFrame:(CGRect)frame {self = [super initWithFrame:frame];if (self) { // Initialization code _backImage = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, frame.size.width, frame.siz
2015-03-02 10:46:38 284
原创 动态添加UIActionSheet按钮
UIActionSheet是一个非常有用的类,我就在应用中经常用它,但是它的初始化函数无法让你通过数组来添加按钮。通常你只能通过初始化参数来增加按钮——所有网络上的代码也几乎是使用该方法。 通常实现——硬编码按钮: - (void)testActionSheetStatic { // Create the sheet with buttons hardcoded in initialiser
2015-03-02 10:40:51 283
原创 UISearchBar
UISearchBar控件就是要为你完成搜索功能的一个专用控件。它集成了很多你意想不到的功能和特点!首先,还是来普及一下UISearchBar控件API相关的属性和方法吧!UISearchBar属性相关_searchBar = [[UISearchBar alloc] initWithFrame:CGRectZero];// 初始化,不解释 [self.searchBar setPlace
2015-03-02 10:35:19 311
原创 UIWebView的用法
(1)创建 UIWebView *myWebView=[[UIWebViewalloc] initWithFrame:CGRectMake(0, 20, 320, 300)]; (2)加载网页 NSURL *url=[NSURLURLWithString:@”http://www.google.com.hk“]; NSURLRequest *request=[[NSURLReque
2015-03-02 10:33:04 277
原创 UITextView的使用详解
//初始化并定义大小 UITextView *textview = [[UITextView alloc] initWithFrame:CGRectMake(20, 10, 280, 30)]; textview.backgroundColor=[UIColor whiteColor]; //背景色 textview.scrollEnabled = NO; //当文字超
2015-03-02 10:30:07 298
原创 UICollectionView的简单使用
所属controller要遵循三个协议:UICollectionViewDataSource,UICollectionViewDelegate,UICollectionViewDelegateFlowLayoutUICollectionViewFlowLayout *flowLayout = [[UICollectionViewFlowLayout alloc]init]; [flowLa
2015-03-02 10:28:01 232
原创 UITableViewController基本操作
UITableViewController 列表在iPhone开发中起着决定性的重要作用,但是UITableViewController并不是那么简单使用的,以下就是其中的重要方法和Delegate://这个delegate会获取有多少个”章节”- (NSInteger)numberOfSectionsInTableView:(UITableView )tableView { return 1
2015-03-02 10:24:52 324
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人