自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

  • 博客(16)
  • 收藏
  • 关注

用UITableViewCell实现电子书平铺书架效果

原创文章,如需转载请注明:转载自:舵手程序 [color=red][size=xx-large][url]http://www.helmsmansoft.com/index.php/archives/70[/url][/size][/color] 现阶段网上讲解的实现这种效果的文章一般都是用UIVIew 去加载UIButton实现此功能,今天给大家说一下在UITableViewCell下怎样...

2011-09-16 11:26:20 143

MAC系统安装WIN7时出现的问题

本文摘自:舵手程序:http://www.helmsmansoft.com 前几天给自己的苹果系统安装WIN7系统,因为在苹果系统下是无法运行.exe程序的(可借助第三方软件),所以要想安装 双系统一个办法是安装虚拟机,在虚拟机上安装WIN7系统。另一个办法就是用光盘或者制作的启动盘 (未试过)来装双系统。在用苹果系统自带的Boot Camp助手来装WIN7系统时,首先要给WIN...

2011-09-15 15:57:03 228

遍历指定目录下的文件,将复合条件的文件加载到列表(UITableView))

[size=x-large][color=red]本站最新网址:[url]http://www.helmsmansoft.com [/url] 欢迎关注[/color][/size] [code="Ios"] - (void)viewDidLoad { NSFileManager *fileManager = [[NSFileManager defaultManager] in...

2011-08-22 09:10:27 119

原创 遍历目录下指定文件类型的文件,并输出

[code="Ios"] [super viewDidLoad]; NSFileManager *fileManager = [NSFileManager defaultManager]; NSArray *path =NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, Y...

2011-08-17 17:54:46 260

原创 (转)UIApplication sharedApplication

iPhone应用程序是由主函数main启动,它负责调用UIApplicationMain函数,该函数的形式如下所示: int UIApplicationMain ( int argc, char *argv[], NSString *principalClassName, NSString *delegateClassName ); 那么UIApplicationMain函数到底做了...

2011-08-17 16:14:18 91

原创 隐藏UINavigation

在需要的地方设置即可   [self.navigationController setNavigationBarHidden:YES animated:YES];   显示   [self.navigationController setNavigationBarHidden:NO animated:YES];  ...

2011-08-17 11:05:25 85

原创 在状态栏中添加Activity Indicator View 图标

  添加此属性即可:   [UIApplication sharedApplication].networkActivityIndicatorVisible = YES;  

2011-08-16 15:49:14 86

实现UIImage的移动动画

- (void)viewDidLoad { imageView = [[UIImageView alloc] initWithFrame:CGRectMake(100, 100, 100, 100)]; image = [UIImage imageNamed:@"apple.png"]; imageView.image = image; [self...

2011-08-16 09:28:46 99

原创 UIAlertView的基本操作

UIAlertView 提示框   定义并显示:   UIAlertView *alert = [[UIAlertView alloc]initWithTitle:@"title" message:nil delegate:nil cancelButtonTitle:@"button" otherButtonTitles: @"otherButton",nil]; [alert...

2011-08-15 17:59:04 62

原创 在UIAlertVIew 中 添加 UITextField

UIAlertView *alert = [[UIAlertView alloc]initWithTitle:@"添加" message:nil delegate:self cancelButtonTitle:@"确定" otherButtonTitles: @"取消",nil]; textField = [[UITextField alloc] initWithFrame:C...

2011-08-15 17:23:18 86

原创 表UITableViewController 的一些操作方法

是否可以对表进行编辑 [self.tableView setEditing:BOOL animated:YES];   BOOL 为YES 可对表中的数据进行如下操作: 移动   - (BOOL)tableView:(UITableView *)tableView canMoveRowAtIndexPath:(NSIndexPath *)indexPath { ...

2011-08-15 16:47:33 78

原创  数组基础

1、创建数组 NSArray *array = [[NSArray alloc] initWithObjects:@"One",@"Two",@"Three",@"Four",nil]; 2、数组所包含对象个数 [self.dataArray count] 3、获取指定索引处的对象 [self.dataArray objectAtIndex:...

2011-08-15 15:43:59 110

原创 UINavigationController,UIBarButtonItem应用的例子

rootViewController.m文件 - (void)viewDidLoad { self.title = @"First Page"; NSMutableArray *array = [[NSMutableArray alloc] init]; DisclosureButtonController *buttonController = [[Di...

2011-08-12 17:23:04 85

原创 创建一个简单表-UITableView

 1.创建基于View-based Application的工程,添加一个UITableView控键.  2. .h文件中加入委托协议 UITableViewDelegate,UITableViewDataSource  并链接  3. .m文件中方法实现:代码如下:   重写VIewDidLoad方法   - (void)viewDidLoad { [super view...

2011-08-11 14:35:16 88

原创 UIImageView 从左到右出现的动画效果

UIImageView *imgView =[[UIImageView alloc] initWithFrame:CGRectMake(0, 0, 0, 460)]; [imgView setImage:[UIImage imageNamed:@"pagethr.png"]]; self.imageViews = imgView; [self.view add...

2011-08-11 11:47:15 901

原创 Iphone翻页动画效果--CATransition实现

本站最新网址:http://www.helmsmansoft.com 欢迎关注    功能代码如下:    在.h文件中定义     NSMutableArray *views;     NSInteger currentPage;     CGPoint startPoint; - (void)viewDidLoad //重写初始化载入方法 { /* 初...

2011-08-10 18:08:03 126

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除