自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(47)
  • 收藏
  • 关注

原创 stautsBar 基本设置

设置状态条不隐藏info.plist文件中,View controller-based status bar appearance项设为YES- (UIStatusBarStyle)preferredStatusBarStyle{    return UIStatusBarStyleLightCon

2014-03-28 12:57:27 476

转载 statusBar下控件设置

1,iOS7的 UIViewController的edgesForExtendedLayout属性edgesForExtendedLayout是一个类型为UIExtendedEdge的属性,指定边缘要延伸的方向。因为iOS7鼓励全屏布局,它的默认值很自然地是UIRectEdgeAll,四周边缘均延伸,就是说,如果即使视图中上有navigationBar,下有tabBar,那么视图仍会延伸覆

2014-03-28 11:13:21 657

转载 statusBar设置

iOS7中我们通过ViewController重载方法返回枚举值的方法来控制状态栏的隐藏和样式。首先,需要在Info.plist配置文件中,增加键:UIViewControllerBasedStatusBarAppearance,并设置为YES;然后,在UIViewController子类中实现以下两个方法:- (UIStatusBarStyle)preferredStatusBarS

2014-03-28 11:06:37 434

转载 statusBar 隐藏

info.plist文件中,View controller-based status bar appearance项设为YES,则View controller对status bar的设置优先级高于application的设置。为NO则以application的设置为准,view controller的prefersStatusBarHidden方法无效,是根本不会被调用的。ios7:

2014-03-28 10:53:52 415

转载 NSData 代码存储

1. NSData 与 NSStringNSData-> NSStringNSString *aString = [[NSString alloc] initWithData:adataencoding:NSUTF8StringEncoding]; NSString->NSDataNSString *aString = @"1234abcd";NSData *aData = [aStr

2013-09-11 09:06:24 634

转载 uibutton 图片加文字

UIImage* radioImage = [UIImageimageNamed:@"radio"];            UIImage* radioOnImage = [UIImageimageNamed:@"radioON"];            manBtn = [UIButtonbuttonWithType:UIButtonTypeCustom];

2013-09-10 14:42:25 789

转载 颜色转换

http://www.cocoachina.com/iphonedev/sdk/2011/0622/2969.html目标:UIColor来源:html 颜色值转换 UIColor,比如:#FF9900、0XFF9900 等颜色字符串。   + (UIColor *) colorWithHexString: (NSString *) stringToConvert {

2013-09-10 10:49:26 650

原创 UIImagePickerController

1.添加接口UIImagePickerControllerDelegate,UINavigationControllerDelegate2,跳转方法- (void)albumBtnDown{    [albumViewremoveFromSuperview];    //从相册获取图片        [selfshowImag

2013-08-27 14:49:31 1007

原创 UIKit UIApplication

UIStatusBarStyle 状态栏UIStatusBarAnimation 状态栏过渡效果UIInterfaceOrientation 界面旋转UIInterfaceOrientationMask 为了支持多种UIInterfaceOrientationUIDeviceOrientation      是机器硬件的当前旋转方向   这个你只能取值 不能设置

2013-06-13 20:26:18 705

原创 文字处理

文字类别:UIFont  systemFont字体设置:字体大小:字体:

2013-06-13 09:25:48 341

原创 NSNumber

数值对象和数字的转换NSNumber *numObj = [NSNumbernumberWithInt: 2];NSInteger myInteger = [numObj integerValue];int a = [numObj intValue];//浮点数值使用CGFloat,NSDecimalNumber对象进行处理:NSDecimalNumber *m

2013-06-12 11:04:16 421

原创 遇到的问题

UISearchBar   键盘隐藏  :btn view ,pageController view,scrollView,

2013-06-11 17:10:40 330

原创 NSTimer

- (void)someAction{ NSTimeInterval timeInterval = 0.5; NSTimer *showTimer = [NSTimer scheduledTimerWithTimeInterval:timeInterval target:self selector:@selector(timerTest:) userInfo:nil repeats:NO];

2013-05-29 11:13:31 508

原创 UIScrollView 1 代码保存

#import @interface DetailView : UIView @property(nonatomic,retain)UIView *upView;@property(nonatomic,retain)UIScrollView *scrollView;@property(nonatomic,retain)UIPageControl *pageControl;@end

2013-05-16 14:56:05 419

原创 UIButton基本代码

UIButton *loginBtn = [UIButton buttonWithType:UIButtonTypeRoundedRect]; loginBtn.frame = CGRectMake(180, 220, 120, 40); loginBtn.titleLabel.textColor = [UIColor blackColor]; loginBtn.title

2013-05-14 11:12:14 511

原创 UILabel基本代码

UILabel *headLabel = [[UILabel alloc]initWithFrame:CGRectMake(190, 20, 100, 40)];headLabel.text = @"客户登录";headLabel.textAlignment = UITextAlignmentCenter; // headLabel.font = [UIFont boldSystemFo

2013-05-14 10:58:42 349

原创 UITextField基本代码

UITextField *pawdField = [[UITextField alloc]initWithFrame:CGRectMake(160, 150, 230, 40)];pawdField.placeholder = @"请输入密码"; pawdField.contentVerticalAlignment = UIControlContentVerticalAlignmentCent

2013-05-14 10:36:09 484

原创 23中设计模式

工厂模式:一个类是工厂,产品是这个类的实例化,可以实例化多次。抽象工厂模式:抽象工厂类中引用多个工厂类,用其中的工厂类来产生不同的产品。Adapter适配器模式:适配器类继承目标对象,组合被适配对象,适配器类实例化后有二者的。

2013-05-03 10:20:07 315

原创 bundle文件

- (void)viewDidLoad{ [self autoBundle]; //[self bundleTest]; //bundle读取 // [self showImage];//滚动视图 [super viewDidLoad];}//取bundle 图片 显示- (UIImage *)imagesNamedFromCustomBundle:(NSSt

2013-04-25 18:17:32 453

原创 UI设计

百度百科整理UI设计的三大构成:用户研究UE交互设计ID IxD界面设计/视觉设计 GUI一,UE ,User Experience,用户体验,用户体验主要是来自用户和人机界面的交互过程。现在流行的设计过程注重以用户为中心。用户体验的概念从开发的最早期就开始进入整个流程,并贯穿始终。其目的就是保证(1)对用户体验有正确的预估(2)认识用户的真实期望和目的(3)在功能核心还能

2013-04-19 19:46:27 985

原创 软件项目的实现

点:1.满足基本要求可行性:技术可用性:用户的傻瓜式操作体验有价值:用户喜欢功能,满足功能的具体表现方式2.成本3.用户体验主体用户群的市场研究确保有价值视觉设计交互设计4.测试测试者理解欣赏产品的价值小孩子喜欢产品的操作和界面

2013-04-17 14:21:58 498

原创 不同分辨率下页面的控件大小调整(待完善)

Retina: 960×640的分辨率压缩到一个3.5英寸的显示屏内。ios4/ios4s 2010/2011Screen Res 960×640Screen Size (inches) 3.5ios5 2012Screen Res 1136×640Screen Size (inches) 4像素定义:像素是指基本原色素及其灰度的基本编码。分辨率(resol

2013-04-17 14:12:03 743

转载 一些问题

浅复制与深复制的区别?KVC、KVO的区别?说说OC的多态和动态运行时什么事ID类型?如何保存应用的登录状态?

2013-04-17 13:20:59 368

转载 ios 真机调试无声音

http://2015.iteye.com/blog/1768716- (void)applicationDidFinishLaunching:(UIApplication *)application 中加入:[[AVAudioSession sharedInstance] setCategory:AVAudioSessionCategoryPlayback error:nil

2013-04-14 08:25:35 1139

原创 ios应用退出保存数据

数据来源 http://superman474.blog.163.com/blog/static/120661462011852595829/UIApplicationDelegate 代理函数调用的时间(应用程序生命周期) UIApplicationDelegate 包含下面几个函数监控应用程序状态的改变:– application:didFinishLaunchingWithOp

2013-04-09 13:54:45 1580

原创 焦点较中的网络视频相关

移动互联网视频产业待查视频编码、解码、带宽、多终端适应、运维功能、流量和存储内容监管、牌照、复杂的商业环境IDC、IaaS层、PaaS云平台带宽、存储、CPU、内存CDN整合、API接口等 国内的数据中心、带宽、电力成本是美国的5-10倍。IaaS服务商无法透明的获得电力、带宽、IP、地产等基础资源,而高昂的成本也压缩了用于技术研发的投入。这制约了对IaaS高度依赖

2013-04-03 20:29:13 571

原创 ios多线程学习

参考:http://blog.csdn.net/totogo2010/article/details/8010231http://blog.sina.com.cn/s/blog_59aee7ed0101bdja.html iOS有三种多线程编程的技术,分别是:1、NSThread 2、Cocoa NSOperation 3、GCD

2013-04-03 19:35:01 427

原创 UITabBarController

UITabBarController *tabBar = [[UITabBarControlleralloc]initWithNibName:nilbundle:nil]; UIViewController *addView = [[AddClassViewControlleralloc]initWithNibName:@"AddClassViewController"bundl

2013-04-03 14:43:37 429

原创 iOS手势UIGestureRecognizer

UIKit中包含了UIGestureRecognizer类,用于检测发生在设备中的手势。UIGestureRecognizer是一个抽象类,定义了所有手势的基本行为,它有下面一些子类用于处理具体的手势:     1、拍击UITapGestureRecognizer (任意次数的拍击)      2、向里或向外捏UIPinchGestureRecognizer (用于缩放)

2013-04-02 14:15:15 358

转载 ios:设置视图背景图片的方法

1. 使用一个UIImageView实例做子视图,并且放最后面UIImageView *customBackgournd = [UIImageView alloc] initWithImage:[UIImage imageNamed:@"background.jpg"]];self.background = customBackground;[customBackground

2013-04-02 13:52:56 371

原创 用过的库

GameKit.framework#import @interface ViewController :UIViewControllerGKPeerPickerControllerDelegate,GKSessionDelegate>@property (strong,nonatomic)GKSession* currentSession;@proper

2013-04-02 13:16:52 394

原创 网络编程(待)

2013-04-02 13:16:22 323

原创 微博(待)

2013-04-02 13:14:56 331

原创 蓝牙(待)

2013-04-02 13:14:33 314

原创 数据解析(待)

2013-04-02 13:14:11 316

原创 简单socket(待)

2013-04-02 13:13:08 336

原创 代码保存

- (CGRect)srandomRect{   CGRect rect;   CGRect rect1 = CGRectMake(60, 80, 80, 40);   CGRect rect2 = CGRectMake(160, 90, 80, 40);   CGRect rect3 = CGRectMake(50, 130, 80, 40);   C

2013-04-02 11:09:24 411

转载 ios生成随机数

http://www.cnblogs.com/zeejun/archive/2012/07/22/2603329.htmlios 有如下三种随机数方法:1.    srand((unsigned)time(0));  //不加这句每次产生的随机数不变        int i = rand() % 5;      2.    srandom(time(0));

2013-04-02 10:01:56 497

转载 不同分辨率设备适配

ios4/ios4s 2010/2011Screen Res 960×640Screen Size (inches) 3.5ios5 2012Screen Res 1136×640Screen Size (inches) 4ipad2  2011Screen Res 1024×768Screen Size (inches) 9.7ipad

2013-04-01 17:19:59 467

转载 1个屏幕模块的布局大小

Element Size (in points)Window (including status bar) 320 x 480 ptsStatus Bar (How to hide the status bar) 20 ptsView inside window (visible status bar) 320 x 460Navigation Bar 44 ptsNav Bar

2013-04-01 17:16:33 353

空空如也

空空如也

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

TA关注的人

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