文章分类 -  【本分类下所有内容均转载自haoxue:iphone开发笔记和技巧总结 】

上一页 1 ··· 7 8 9 10 11
原文地址:http://www.cocoachina.com/bbs/read.php?tid-73570-page-1.html
摘要:翻页效果经常看到iPhone的软件向上向下翻页面的效果,其实这个很简单,已经有封装好的相关方法处理。//首先设置动画的相关参数[UIView beginAnimations:@"Curl"context:nil];[UIView setAnimationDuration:1.25];//时间[UIV... 阅读全文
posted @ 2015-12-23 21:07 Bo-tree 阅读(75) 评论(0) 推荐(0)
摘要:iPhone开发中,只有一个窗口,对应的是多个视图,而视图的组织形式各种各样,关键是要靠控制器来组织各个视图的逻辑关系。大体的关系如下:窗体---主控制器(比如说导航控制器),主控制器在窗体里面,拖动过去即可,在AppDelegate中写相关变量的代码---在主控制器下有别的控制器,比如视图控制器,... 阅读全文
posted @ 2015-12-23 21:06 Bo-tree 阅读(116) 评论(0) 推荐(0)
摘要:启动界面的制作iPhone开发实现splash画面非常简单,做一个全屏的欢迎页的图片,把它命名为Default.png,然后放在Xcode工程的Resource里面。在XXXAppDelegate.m程序中,插入如下代码:-(BOOL)application:(UIApplication*)appl... 阅读全文
posted @ 2015-12-23 21:05 Bo-tree 阅读(99) 评论(0) 推荐(0)
摘要:延时函数和Timer的使用延时函数:[NSThread sleepForTimeInterval:5.0];//暂停5s.Timer的使用:NSTimer *connectionTimer; //timer对象//实例化timerself.connectionTimer=[NSTimerschedu... 阅读全文
posted @ 2015-12-23 21:04 Bo-tree 阅读(402) 评论(0) 推荐(0)
摘要:Objective-C 画图1.颜色和字体 UIKit提供了UIColor和UIFont类来进行设置颜色和字体, UIColor *redColor=【UIColor redColor】;【redColor set】;//设置为红色 UIFont *front=【UIFont systemFontO... 阅读全文
posted @ 2015-12-23 21:02 Bo-tree 阅读(205) 评论(0) 推荐(0)
摘要:在iphone程序中实现截屏的一种方法://导入头文件#import QuartzCore/QuartzCore.h//将整个self.view大小的图层形式创建一张图片image UIGraphicsBeginImageContext(self.view.bounds.size);[self.vi... 阅读全文
posted @ 2015-12-23 21:00 Bo-tree 阅读(94) 评论(0) 推荐(0)

上一页 1 ··· 7 8 9 10 11