自定义博客皮肤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 556

转载 statusBar下控件设置

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

2014-03-28 11:13:21 756

转载 statusBar设置

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

2014-03-28 11:06:37 530

转载 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 474

转载 NSData 代码存储

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

2013-09-11 09:06:24 696

转载 uibutton 图片加文字

UIImage* radioImage = [UIImage imageNamed:@"radio"];             UIImage* radioOnImage = [UIImage imageNamed:@"radioON"];             manBtn = [UIButton buttonWithType:UIButtonTypeCustom];

2013-09-10 14:42:25 884

转载 颜色转换

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 780

原创 UIImagePickerController

1.添加接口 UIImagePickerControllerDelegate,UINavigationControllerDelegate 2,跳转方法 - (void)albumBtnDown {     [albumView removeFromSuperview];     //从相册获取图片          [self showImag

2013-08-27 14:49:31 1080

原创 UIKit UIApplication

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

2013-06-13 20:26:18 786

原创 文字处理

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

2013-06-13 09:25:48 395

原创 NSNumber

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

2013-06-12 11:04:16 477

原创 遇到的问题

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

2013-06-11 17:10:40 383

原创 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 571

原创 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 473

原创 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 578

原创 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 411

原创 UITextField基本代码

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

2013-05-14 10:36:09 537

原创 23中设计模式

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

2013-05-03 10:20:07 364

原创 bundle文件

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

2013-04-25 18:17:32 518

原创 UI设计

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

2013-04-19 19:46:27 1296

原创 软件项目的实现

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

2013-04-17 14:21:58 558

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

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

2013-04-17 14:12:03 838

转载 一些问题

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

2013-04-17 13:20:59 421

转载 ios 真机调试无声音

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

2013-04-14 08:25:35 1209

原创 ios应用退出保存数据

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

2013-04-09 13:54:45 1719

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

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

2013-04-03 20:29:13 690

原创 ios多线程学习

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

2013-04-03 19:35:01 485

原创 UITabBarController

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

2013-04-03 14:43:37 521

原创 iOS手势UIGestureRecognizer

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

2013-04-02 14:15:15 413

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

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

2013-04-02 13:52:56 441

原创 用过的库

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

2013-04-02 13:16:52 437

原创 网络编程(待)

待

2013-04-02 13:16:22 361

原创 微博(待)

待

2013-04-02 13:14:56 380

原创 蓝牙(待)

待

2013-04-02 13:14:33 364

原创 数据解析(待)

待

2013-04-02 13:14:11 401

原创 简单socket(待)

待

2013-04-02 13:13:08 387

原创 代码保存

- (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 465

转载 ios生成随机数

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

2013-04-02 10:01:56 553

转载 不同分辨率设备适配

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

2013-04-01 17:19:59 536

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

Element Size (in points) Window (including status bar) 320 x 480 pts Status Bar (How to hide the status bar) 20 pts View inside window (visible status bar) 320 x 460 Navigation Bar 44 pts Nav Bar

2013-04-01 17:16:33 407

空空如也

空空如也

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

TA关注的人

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