首页 软件开发 代码片段 objective-c ( Page 35 )

objective-c 628

#Objective-C
ios 获取系统中自带的字体库

NSArray * nameArray = [UIFont familyNames];

2015-04-07 580

#Objective-C
iOS类别(Category)与扩展(Extension) 创建

iOS类别(Category)与扩展(Extension) 创建

2015-04-05 772

#Objective-C
一个简单易用的蓝牙设备操作库,基于CoreBluetooth框架

//导入.h文件和系统蓝牙库的头文件 #import <CoreBluetooth/CoreBluetooth.h> #import "BabyBluetooth.h"…

2015-04-05 537

#Objective-C
iOS实现旋转

#import "ViewController.h" @interface ViewController () @property (strong, nonat…

2015-04-03 637

#Objective-C
Category 给label加扩展类 添加点击事件

//.h文件 #import <UIKit/UIKit.h> @interface UILabel (hanhan) - (void)dianjishijian:(id…

2015-04-03 871

#Objective-C
ios网络编程

一:确认网络环境3G/WIFI        1. 添加源文件和framework    …

2015-04-03 328

#Objective-C
iOS的NSString总结

1.常用功能使用 1)初始化 NSString *astring = @"This is a String!&…

2015-03-31 840

#Objective-C
系统通讯录的获取

框架:AddressBook、AddressBookUI ABPeoplePickerNavigationControllerDelegate ABPeoplePickerNavi…

2015-03-29 342

#Objective-C
iOS获取app版本号 plist文件

versionLabel.text = [NSString stringWithFormat:@"v%@", [[NSBundle mainBundle] objectForInf…

2015-03-29 353

#Objective-C
iOS 随机颜色

view.backgroundColor = [UIColor colorWithRed:arc4random_uniform(255)/255.0 green:arc4rando…

2015-03-28 820

#Objective-C
收全部键盘 回调里面使用弱引用对象 判断iOS版本让代码使代码执行不执行

[[[UIApplication sharedApplication] keyWindow] endEditing:YES];收全部键盘 __weak typeof(self)we…

2015-03-28 146
1 33 34 35 36 37 53