- 博客(12)
- 资源 (6)
- 收藏
- 关注
原创 关于NavigationBar背景图片和颜色的设置
第一种:直接在你的UIViewController中设置//颜色设置,采用RGB格式UIColor *bgcolor = [UIColorcolorWithRed:255.0f/255.0fgreen:0.0f/255.0f blue:0.0f/255.0f alpha:1.0f];self.navigationController.navigationBar.tintCo
2012-06-30 18:11:17 29689
转载 _OBJC_CLASS_$_CALayer"问题解
解决方法:Make sure you also add the QuartzCore framework to your target. Just importing the header isn't enough.也就是在你的Frameworks里面添加QuartzCore.framework
2012-06-29 15:03:25 1800
原创 关于NavigationItem.rightBarButtonItem设置
第一种:UIImage *searchimage=[UIImage imageNamed:@"search.png"]; UIBarButtonItem *barbtn=[[UIBarButtonItem alloc] initWithImage:nil style:UIBarButtonItemStyleDone target:self action:@selector(sea
2012-06-29 11:50:10 54672
转载 iOS中,按钮图标的要求
After you’ve decided on the appearance of your icon, follow these guidelines as you create it:* Use the PNG format.* Use white with appropriate alpha and no shadow.* Use anti-aliasing.* For
2012-06-29 10:06:05 2292
转载 UIAlertView用法
1. 最简单的用法UIAlertView*alert = [[UIAlertView alloc]initWithTitle:@"提示" message:@"这是一个简单的警告框!"
2012-06-28 18:26:01 579
原创 NavigationController关于页面导航
要使用NavigationController页面导航,第一,得有个NavigationController实例对象和要导航的页面关联起来;第二,导航的页面和被导航的页面之间得先建立push segue;当上述条件都成立的时候,有下面二种方式实现导航第一种:选中Push Segue,将其Identifier先命名,比如“pushsegue”;然后在你想要发生导航的事件里面调用
2012-06-28 14:09:21 872
原创 关于MediaPlayer.framework框架导入Frameworks之后.m文件中还是无法识别其中的类
在Linked Frameworks and Libraries中导入MediaPlayer.framework后,还得在要调用其类的.m文件的头文件.h中用以下语句导入#import
2012-06-26 18:51:00 2814
原创 import"" 与import<>
在Linked Frameworks and Libraries中导入framework时,在.m文件中使用import我在用Audio Toolbox.framework时就遇到在运行中声音无法正常播放
2012-06-22 10:43:56 939
原创 在storyboard中随意获取窗体对象,可以实现页面导航
UITableViewController *startingTableController=[self.storyboardinstantiateViewControllerWithIdentifier:@"UITableViewController"];[self.view addSubview:startingTableController.view];//inst
2012-06-20 15:22:09 7702
原创 IOS翻页动画
[UIViewbeginAnimations:@"View Flip"context:nil];[UIViewsetAnimationDuration:3.25];//setAnimationDuration:设置动画时间[UIViewsetAnimationCurve:UIViewAnimationCurveEaseInOut];//设置动画曲线类型,有四种,没感觉出什么
2012-06-20 13:51:35 3493
转载 addSubview和insertSubview的区别
addSubview 是将view加到所有层的最顶层相当于将insertSubview的atIndex参数设置成view.subviews count即[view addSubview:oneview] == [view insertSubview:oneview atIndex:view.subviews count]addSubview是加到最后in
2012-06-20 13:42:04 1426
转载 The run destination My Mac 64-bit is not valid for Running the scheme 'MultiTouchDemo'
问题:The run destination My Mac 64-bit is not valid for Running the scheme 'MultiTouchDemo'.The scheme 'MultiTouchDemo' contains no buildables that can be built for the SDKs supported by the run d
2012-06-20 11:17:13 1320
IOS获取文件、目录所占空间大小
2012-07-23
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人