自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(51)
  • 资源 (21)
  • 收藏
  • 关注

转载 IOS7状态栏保持黑底白字

已测试过可行的方法:plist里UIViewControllerBasedStatusBarAppearance设置为YES;viewDidLoad里加[self setNeedsStatusBarAppearanceUpdate];设置view的背景颜色为黑色;追加方法-(UIStatusBarStyle)preferredStatusBarStyle{

2014-03-26 13:00:32 796

转载 iOS7下隐藏status bar的详细研究

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

2014-03-26 12:50:09 529

转载 解决 UIView 设置背景为UIImage图片变型问题[XXX setBackgroundColor:

[self.drawingView setBackgroundColor:[UIColor colorWithPatternImage:[self thumbnailWithImageWithoutScale:imagesize:self.drawingView.frame.size]]]; - (UIImage *)thumbnailWithImageWithoutScale:(

2014-03-25 11:47:35 1559

转载 用colorWithPatternImage设置view背景色太占内存,替代方法

用colorWithPatternImage设置view背景色太占内存,替代方法之前的一个iPad项目,由于支持旋转,背景图又不一样,采用在旋转时使用下面代码设置背景色:    self.view.backgroundColor = [UIColor colorWithPatternImage:[UIImage imageNamed:@"main_landscape.jpg"]];

2014-03-25 11:41:06 629

转载 iphone中,在编辑文本时怎么设置UITextView的边框颜色?

加上:#Import 用下面的代码就行:- (BOOL)textFieldShouldBeginEditing:(UITextField *)textField{ textField.layer.cornerRadius=8.0f; textField.layer.masksToBounds=YES; textField.layer.borderColor=[

2014-03-25 09:40:34 726

转载 为UIView及其子类添加圆角边框

//设置圆角边框someView.layer.cornerRadius = 8;someView.layer.masksToBounds = YES;//设置边框及边框颜色someView.layer.borderWidth = 8;someView.layer.borderColor =[ [UIColor grayColor] CGColor];

2014-03-25 09:39:52 564

转载 Five Tips for Using Self Signed SSL Certificates with iOS

SSL certificates are relatively cheap to purchase, but sometimes it would be easier if you could create your own. You might need to setup SSL on development and test servers that have different host

2014-03-21 12:04:25 1198

转载 关于IOS7.1企业版发布后,用户通过sarafi浏览器安装无效的解决方案:

转载:http://www.cocoachina.com/bbs/read.php?tid=194213&page=1通过测试,已经完美解决。方案一:http://blog.csdn.net/zhaoxy_thu/article/details/21133399方案二:最简单,实用。使用dropBox如何安装,自己度之。当你使用X

2014-03-21 12:01:49 850

转载 iOS7.1企业应用"无法安装应用程序 因为证书无效"的解决方案

今天升级了iOS7.1后发现通过之前的url无法安装企业应用了,一直提示“无法安装应用程序 因为http://xxx.xxx.xxx证书无效”,折腾了一番,终于在StackOverFlow上找到了答案。在这里分享给大家。StackOverFlow链接:http://stackoverflow.com/questions/20276907/enterprise-app-deployment-

2014-03-21 10:56:20 1015

转载 使用Xcode和Instruments调试解决iOS内存泄露

虽然iOS 5.0版本之后加入了ARC机制,由于相互引用关系比较复杂时,内存泄露还是可能存在。所以了解原理很重要。这里讲述在没有ARC的情况下,如何使用Instruments来查找程序中的内存泄露,以及NSZombieEnabled设置的使用。本文假设你已经比较熟悉Obj-C的内存管理机制。实验的开发环境:XCode 4.5.21、运行Demo。先下载一个实

2014-03-20 18:05:05 710

转载 viewDidUnload 和 dealloc 的区别

对于iphone开发人员来说,内存管理是极为重要的技巧,哪怕程序的功能再强大,设计再漂亮,如果内存控制不好,也难逃程序莫名退出的噩运,这与网页开发是完全不同的。  内存控制里面有很多门道,在这里分析一下 viewDidUnload 和 dealloc 的区别,关于这两者的区别的文章很多,但是大都是摘抄和翻译官方文档,有的也只是简单的说两句,并没有详细说出两者具体的区别。

2014-03-20 15:10:53 453

转载 如何自定义iOS中的控件

转载:http://beyondvincent.com/blog/2014/01/20/how-to-build-a-custom-control-in-ios/本文译自How to build a custom control in iOS。大家要是有什么问题,可以直接在twitter上联系原作者,当然也可以在最后的评论中回复我。下面先来看看目录:子类化UIContr

2014-03-15 09:28:06 560

转载 25个增强iOS应用程序性能的提示和技巧 — 高级篇

_____________本文由破船译自:raywenderlich转载:BeyondVincent的博客_____________在开发iOS应用程序时,让程序具有良好的性能是非常关键的。这也是用户所期望的,如果你的程序运行迟钝或缓慢,会招致用户的差评。然而由于iOS设备的局限性,有时候要想获得良好的性能,是很困难的。在开发过程中,有许多事项需要记住,并且关于性能影响

2014-03-15 09:25:43 520

转载 25个增强iOS应用程序性能的提示和技巧 — 中级篇

_____________本文由破船译自:raywenderlich转载:BeyondVincent的博客_____________在开发iOS应用程序时,让程序具有良好的性能是非常关键的。这也是用户所期望的,如果你的程序运行迟钝或缓慢,会招致用户的差评。然而由于iOS设备的局限性,有时候要想获得良好的性能,是很困难的。在开发过程中,有许多事项需要记住,并且关于性能影响

2014-03-15 09:24:47 674

转载 25个增强iOS应用程序性能的提示和技巧 — 初级篇

_____________本文由破船译自:raywenderlich转载:BeyondVincent的博客_____________在开发iOS应用程序时,让程序具有良好的性能是非常关键的。这也是用户所期望的,如果你的程序运行迟钝或缓慢,会招致用户的差评。然而由于iOS设备的局限性,有时候要想获得良好的性能,是很困难的。在开发过程中,有许多事项需要记住,并且关于性能影响

2014-03-14 14:10:43 704

转载 iOS: 枚举类型 enum,NS_ENUM,NS_OPTIONS

一般情况下,我们采用C风格的enum关键字可以定义枚举类型。[cpp] view plaincopyenum{       UIViewAnimationTransitionNone,      UIViewAnimationTransitionFlipFromLeft,      UIViewAnimationTransitio

2014-03-14 11:16:08 657

转载 iOS 7过渡之--控件

Controls are UI elements that users either view (to get information) or interact with (to perform an action). All iOS 7 controls have an updated appearance, and most of them also have different metric

2014-03-14 10:50:54 942

转载 IOS 7 过渡之 Content Views (视图内容)

Content views display custom app content. Because the look of most content views is not provided by the system, visual changes in iOS 7 have almost no effect on them. The main exception is the grouped

2014-03-14 10:49:05 780

转载 IOS 7过渡----Bars and Bar Buttons

Bars and Bar ButtonsIn iOS 7, the status bar is transparent, and other bars—that is, navigation bars, tab bars, toolbars, search bars, and scope bars—are translucent. As a general rule,

2014-03-14 10:48:32 720

转载 IOS 7过渡----Bars and Bar Buttons

Bars and Bar ButtonsIn iOS 7, the status bar is transparent, and other bars—that is, navigation bars, tab bars, toolbars, search bars, and scope bars—are translucent. As a general rule,

2014-03-14 10:43:33 590

转载 IOS7过渡之---Layout and Appearance 布局和外观

IMPORTANTThis is a preliminary document for an API or technology in development. Although this document has been reviewed for technical accuracy, it is not final. This Apple confidential informati

2014-03-14 10:38:12 741

转载 IOS 7过渡之---支持IOS 6

Supporting iOS 6If business reasons require you to continue supporting iOS 6 or earlier, you need to choose the most practical way to update the app for iOS 7. The techniques you choose can differ

2014-03-14 10:30:20 568

转载 iOS 7 UI Transition Guide - Scope the Project | 研究工程

Scope the Project研究工程Knowing your app’s compatibility requirements and customization characteristics gives you some idea of the path to take. Use the following checklists to fill in more detai

2014-03-14 10:26:33 508

转载 iOS 7 UI Transition Guide - Before you start | iOS 7 界面过渡指导,在你开始前

Before You StartIMPORTANTThis is a preliminary document for an API or technology in development. Although this document has been reviewed for technical accuracy, it is not final. This Appl

2014-03-14 10:23:26 692

转载 Design and Develop for iOS 7 --- 为 iOS 7设计和开发

User InterfaceElevate the content of your apps and make your user interface come alive on iOS 7. Adopt the new design to simplify and revitalize your app with clarity, translucency, and depth. UIK

2014-03-14 10:18:50 755

转载 关闭ios虚拟键盘的几种方法

在iOS应用开发中,有三类视图对象会打开虚拟键盘,进行输入操作,但如何关闭虚拟键盘,却没有提供自动化的方法。这个需要我们自己去实现。这三类视图对象分别是UITextField,UITextView和UISearchBar。这里介绍一下UITextField中关闭虚拟键盘的几种方法。 (miki西游 @mikixiyou 原文链接: http://mikixiyou.iteye.

2014-03-14 10:05:14 717

转载 Effective Objective-C [下]

Chapter 6: Blocks and Grand Central DispatchItem 37: Understand Blocks《Ry’s Objective-C Tutorial》# BlocksItem 38: Create typedefs for Common Block Types当我们程序中要使用一些具有共性的Block时(返回值类型、参

2014-03-13 17:43:54 671

转载 Effective Objective-C [上]

本文是针对《Effective Objective-C》一书的代码解读,笔者并没有看过原书,只是通过阅读该书的代码,并结合相应的主题,来臆测作者可能要表达的内容并用自己的语言来描述出来。Chapter 1: Accustoming Yourself to Objective-CItem 1: Familiarize Yourself with Objective-C's Roo

2014-03-13 17:42:51 783

转载 performSelector may cause a leak because its selector is unknown

from:http://stackoverflow.com/questions/7017281/performselector-may-cause-a-leak-because-its-selector-is-unknown第一种解决办法:As a workaround until the compiler allows overriding the warning, yo

2014-03-13 17:03:49 605

转载 iOS 多层级的immutable objects 转换成 mutable objects

第一种方法是:将多层级的递归转换方法;+(id) recursiveMutable:(id)object{if([object isKindOfClass:[NSDictionary class]]){NSMutableDictionary* dict = [NSMutableDictionary dictionaryWithDictionary:object];for

2014-03-13 16:28:47 580

转载 iOS如何将不可变变量改变成可变变量, deep copy objects into mutable

最近在做一个金融方面的项目,遇到了这个问题。大概就是我会从后台拿到一个object(它代表一个公司),当然了,它是一个通过json转换过来的不可变(inmutable)字典。在创建了与之对应的model class之后呢操作变得很方便,可是问题来了,后台总是不断的增加这个公司的信息,而我又不能时刻的更新对应的model,所以就想到在model里添加一个类似trunk的东西用来保存整个字

2014-03-13 16:00:03 836

转载 IOS Number 处理(int-->NSNumber,NSNumber-->nsinteger,string -->double,CGFloat --> dobule)

1 小结:1)int-->NSNumber:numberWithInt2)NSNumber-->nsinteger:integerValue3)string -->double:initWithString4)CGFloat --> dobule:initWithFloat,decimalobj doubleValue5)使用NSInteger,因为这样就不

2014-03-13 15:37:34 721

转载 【iOS开发】协议与委托 (Protocol and Delegate) 实例解析

1 协议:协议,类似于Java或C#语言中的接口,它限制了实现类必须拥有哪些方法。它是对对象行为的定义,也是对功能的规范。示例:123456789// GoodChild.h#import @protocol GoodChild -(void)filialPiety;@end

2014-03-13 15:24:49 591

转载 用NSInvocation來作為object performSelector的替代方案

在寫程式的時候, 常常會有需要呼叫好幾個method, 然後在時間上有所需別; 最常遇到的都是希望Layout改變完成之後再去執行下一步動作, 如果是一堆layout animation, 就會很常使用到delay去做一些時間差的區別.can do it this way1234567- (void)currentMehtod { SEL

2014-03-13 14:45:09 926

原创 objc 对象的copy和消息转发的实例

Objective-C不支持多重继承,但是我们有方法实现伪继承.1. CustomClass类//// CustomClass.h// Hello71//// Created by Caijx on 14-3-13.// Copyright (c) 2014年 ZhongShan Sun union Medical Technology Co. Ltd. Al

2014-03-13 14:10:01 677

转载 objc 消息转发

今天突然又兴趣看了下 NSObject的头文件,发现其中的消息转发机制还不甚了解,所以在 debug 调试了解之后,写下此文章留作记录1- (id)forwardingTargetForSelector:(SEL)aSelector;2- (NSMethodSignature *)methodSigna

2014-03-13 13:58:57 533

转载 IOS高级开发~Runtime(四)

用C代替OC:#import #import #import extern int UIApplicationMain (int argc,char *argv[],void *principalClassName,void *delegateClassName);struct Rect {  

2014-03-13 10:55:44 541

转载 IOS高级开发~Runtime(三)

11、系统类的方法实现部分替换- (void) methodExchange {    Method m1 = class_getInstanceMethod([NSStringclass],@selector(lowercaseString));    Method m2 = class_getInstanceMethod([NSStringclass],@sel

2014-03-13 10:49:18 523

转载 IOS高级开发~Runtime(二)

一些公用类:@interface ClassCustomClass :NSObject{    NSString *varTest1;    NSString *varTest2;    NSString *varTest3;}@property (nonatomic,assign)NSString *varTest1;@prop

2014-03-13 10:46:26 507

转载 IOS高级开发~Runtime(一)

一些公用类:@interface CustomClass : NSObject- (void) fun1;@end@implementation CustomClass- (void) fun1{    NSLog(@"fun1");}@end@interface TestClass :

2014-03-13 10:43:33 519

单片机I2C总线AT24C02读写、扩展keil工程多个实例及Proteus仿真

工程实例有 1.I2C总线扩展AT2402; 2.AT24C02记录按下键次数并显示; 3. I2C总线上的两个AT24C02的读写。I2C总线器件地址文档说明。keil和Proteus仿真联调截图。

2021-12-17

helloopengl.zip

windows 10平台,Qt5+Qt Creator 4.9.1+ OpenGL(QT 自带的OpenGL库) 简单实例,实例测试通过,希望更多需要的人下载参考,少走弯路~~~~~

2019-09-03

STM32 F103R6 寄存器方式读写GPIO实例源代码(Keil)及protues 8.6 sp2 仿真工程

STM32 F103R6 寄存器方式读写GPIO实例源代码(Keil)及protues 8.6 sp2 仿真工程,源代码编译用Keil MDK 5.23版本,亲测实现发光二极管闪烁效果

2018-04-26

STM32 F103R6 GPIO 闪烁源代码(Keil)及protues 8.6 sp2 仿真工程

STM32 F103R6 GPIO 闪烁源代码(Keil)及protues 8.6 sp2 仿真工程,源代码编译用Keil MDK 5.23版本,亲测通过

2018-04-26

hello_i18n_qml

中文国际化Qt Quick Application类型工程的例子源代码和打包发布

2016-06-20

hello_i18n

国际化中文Qt Widgets Application类型工程中的例子源代码

2016-06-20

c++程序调用c# 库 Demo工程代码实例

1. c++ 程序调用c# 库 之 COM组件方式; 2. c++ 程序调用c# 库 之 clr 混合编程方式; 3. c++ 浮点数精度转换,包含四舍五入或截掉两种方式

2014-02-26

FMS4.5 Adobe官方全英文PDF教程

FMS4.5 Adobe官方全英文PDF教程,包括: 1.flashmediaserver_4.5_administrationapi.pdf 2.flashmediaserver_4.5_config_admin.pdf 3.flashmediaserver_4.5_dev_guide.pdf 4.flashmediaserver_4.5_install.pdf 5.flashmediaserver_4.5_sslr.pdf 6.flashmediaserver_4.5_tech_overview.pdf 7.flashmediaserver4_wp_ue_v2

2012-11-20

nsis 脚本编写之Hello World 源代码包

本实例包括.NET Framework 2.0 SP1检测和安装,DLL注册和卸载,已安装版本检测和重安装处理等,本人测试验证通过,供学习参考,也可在此基础上修改和完善,直接用于工作之中。

2012-11-11

FMS 4.5 + Flex mobile 之 Hello World 工程源代码

FMS 4.5 + Flex mobile 之 Hello World 工程源代码,包括FMS 服务器端asc脚本和Flex Mobile客户端工程源代码,供入门参考。

2012-11-07

Hello Flex 4英文电子PDF文档

Hello Flex 4英文电子PDF文档,是学习Flex 4的好教材,英文棒的可以下载学习参考。

2012-10-30

Hello Flex 4电子书源代码

Hello Flex 4书源代码,是学习Flex的绝佳入门资源,源代码可以直接使用到自己的工程中。

2012-10-30

flex基于actionscript源代码——适用Flex 4

本源代码由本人在书:flex基于actionscript源代码(适用Flex 3)基础上修改成适用于Flex 4.6, 修改部分测试通过(13、14章涉及Java,17、18章涉及hibernate,暂没做修改),是学习Flex的入门参考好资料

2012-10-28

书:flex基于actionscript源代码

本书源代码对于Flex 3.6A以下版本可以正常编译和运行,是学习Flex的入门参考好资料

2012-10-28

Hello Flex Ajax通信实例

利用FABridge构建FLEX与AJAX的通信,实现Flex和Ajax相互控制,代码测试通过

2012-10-27

HeadsetPlugANESample.zip

Flex Android Mobile上检测耳机是否插入,采用ANE方法,包内有Android native工程源代码,Flex库工程源代码,Flex手机测试工程源代码,打包批处理文件,用Flash Builder 4.6建立和编译,测试通过,供学习Air ANE的技术人员参考。

2012-08-27

Flex Mobile ANE Hello Sample

Flex Mobile ANE Hello实例源代码,包括Android Native Java工程源代码,Flex库工程源代码代码和Flex手机工程源代码,打包脚本,实现Android手机振动,Flash Builder 4.6编译,测试通过。

2012-08-26

Parsley Hello World 实例工程源代码

Parsley框架开发的Hello World实例源代码,完成客户端登录功能,需要的朋友可以下载参考,用于学习Parsley框架入门

2012-08-03

x264-snapshot-20090216-2245_VS2010.zip

X264库和测试程式源代码,VS2010编译通过,需要的朋友请下载,可直接使用

2012-08-03

空空如也

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

TA关注的人

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