自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 UIApplication (常用函数)

1.1 openURL (A访问B)(A)/** * A访问其它App * URL格式:app2://?x=2,y=1 1、app2 为 被访问程序 URL Schemes 2、:// 网址格式符,必须紧跟着 app2:// (如果只是openURL:"app2",无法访问app) 3、? 这里分为带

2015-11-26 14:53:04 1060

原创 UIColor (16进制颜色、透明色使用)

RGB与十六进制互转http://tool.css-js.com/rgba.html十六进颜色  (#03a9f4 0x050301)+(UIColor *)translateHexStringToColor:(NSString *)hexColor   NSString *cString = [[hexColorstringByTrim

2015-11-25 17:59:04 2329

原创 UIDatePicker (时间、日期选择器使用)

#define k_datePicker_height 200@interface ViewController (){ UIDatePicker *datePickerView;}@property (weak, nonatomic) IBOutlet UILabel *showDate;@end@implementation ViewController-

2015-11-25 15:49:43 7626

转载 NSTimeZone (API+时区概念,GMT)

基本概念:(转自http://my.oschina.net/yongbin45/blog/151376)GMT 0:00 格林威治标准时间; UTC +00:00 校准的全球时间; CCD +08:00 中国标准时间 [来自百度百科iOS中的时区表示方法:GMT+0800 GMT-0800。(+:东区 -:西区 08:小时数 00:分钟数)。 GMT+0830就是指比GMT早8小时外加30

2015-11-25 15:38:22 1791

原创 CFStringTokenizer (系统语言设置..相应标识)

OC 相应国家语言标识常用: 英文:"en" 简体中文:"zh-Hant"  繁体中文:"zh-Hans", 其它有需要可以对号选择ar (Arabic), bg (Bulgarian), cs (Czech), da (Danish), de (German), el (Greek), en (English), es (Spanish), fi (Finnish),

2015-11-25 14:24:22 840

原创 NSDate (API +时间与字符串互转)

NSDate转换NSStringNSDate *date = [NSDate date]; NSDateFormatter *dateFor = [[NSDateFormatter alloc]init]; dateFor.dateFormat = @"yyyy/MM/dd HH:mm:ss"; //hh 12小时制 HH 24小时制 NSString *dat

2015-11-25 12:40:06 478

原创 UIBarButtonItem (系统 Item 样式)

图示:    UIBarButtonSystemItemSave,      UIBarButtonSystemItemAdd,    UIBarButtonSystemItemFlexibleSpace, (动态间隔宽)  (图1)    UIBarButtonSystemItemFixedSpace,    (自定义间隔宽)要设置 item.widt

2015-11-25 09:41:09 843

原创 UIPickerView(API+选择器使用)

#define k_pickerView_height 300#define k_row_height 50#define k_component_width (([UIScreen mainScreen].bounds.size.width)/3)@interface ViewController (){ UIPickerView *testPickerView;}@end

2015-11-24 18:16:41 592

翻译 <UIKit/UIKit.h> 继承关系图

(图片转自网络)  OC是单继承体系,库包含以下所示的UI类1、子类可以调用父类的方法2、在自定义子类里面可以重写父类方法.....init....drawRect....一系列函数    (@interface subObject : UIButton)

2015-11-24 16:03:24 807

原创 UIPasteboard (粘贴板、剪切板使用)

static NSString *pasteBoardName = @"text.Board";@interface ViewController (){ UIButton *imageBtn; NSUInteger index; UIButton *pasteView;}@end@implementation ViewController- (void)

2015-11-24 14:09:10 1089

原创 UIToolBar (API+自定义工具栏)

初始化navToolBar = [[UIToolbar alloc]initWithFrame:CGRectMake(0, 0, self.view.frame.size.width, k_navBar_height)]; navToolBar.barStyle = UIBarStyleBlackTranslucent;// [navToolBar setBackgroundI

2015-11-24 12:13:29 824

原创 查询 C/C++类所属库

$ cd /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.4.sdk$ find . -name \*.h -exec fgrep -l OSStatus {} \;

2015-11-23 18:04:09 377

原创 UIScrollView (API+循环滚动)

详细-(id)initWithFrameRect:(CGRect)rect ImageArray:(NSArray *)imgArr TitleArray:(NSArray *)titArr delegate:(id)delegate;{ if ((self=[super initWithFrame:rect])) { [self buildUI:r

2015-11-20 11:19:51 963

原创 UICollectionView (仿系统相册,按日期分区 item瀑布流)

#import "PhotoManageCell.h"#import "footView.h"@interface ViewController : UIViewController@property(nonatomic,retain) footView *footer_View;@endstatic NSString *CellIdentifier = @"Cell";@in

2015-11-19 18:04:34 799

转载 C语言 memcpy memmove

1234567891011#includeintmain({char*s="GoldenGlobalView";chard[20];memcpy(d,s+14,4);//从第14个字符(V)开始复制,连续复制4个字符(View)                 /

2015-11-13 14:17:01 405

原创 UITableViewController (列表视图控制器)

初始化 @interface ViewController : UIViewController@property(nonatomic,strong)UITableView *tableView;@end@implementation ViewController- (void)viewDidLoad{ [super viewDidLoad]; _selectVC

2015-11-06 17:02:22 781

原创 UITextField (文本输入框基本设置和代理)

- (void)viewDidLoad{ [super viewDidLoad]; //初始化 UITextField *textField=[[UITextField alloc] initWithFrame:CGRectMake(100, 100, 200, 40)]; textField.backgroundColor=[UIColor whiteColo

2015-11-05 17:34:58 713

原创 UILabel (API+自定义多颜色文本内容)

//初始化 UILabel* label = [[UILabel alloc]initWithFrame:CGRectMake(100, 100, 200, 90)]; [self.view addSubview:label]; //文字 label.text = @"OKOKOKOKOKOKOKOKOKOKOKOKOKOKOKOKOKOKOKOKOK";

2015-11-04 14:50:05 510

原创 UIButton (常用点击按钮)

初始化 /** * 点击按钮的预设效果 * UIButtonTypeSystem 系统默认类型 (图片和文字都表现为选中半透明效果,闪现一下) * UIButtonTypeCustom 自定义 (图片表现为加深底色,通常为暗灰; 文字无效果) */ UIButton *btn = [UIButton buttonWithTy

2015-11-03 14:38:47 2489

空空如也

空空如也

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

TA关注的人

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