#import @interface AppDelegate : UIResponder {@public NSInteger timeValue;}@property (strong, nonatomic) UIWindow *window;@end#import "AppDelegate.h"....
分类:
其他好文 时间:
2015-08-02 15:02:07
阅读次数:
137
1. 图片缩放:代码- (UIImage*)resizeImage:(UIImage*)image toWidth:(NSInteger)width height:(NSInteger)height{ // Create a graphics context with the target siz....
分类:
其他好文 时间:
2015-08-02 14:58:06
阅读次数:
108
UITableViewUITableView内置了两种样式:UITableViewStylePlain,UITableViewStyleGrouped里的方法:tableView处理步骤#pragma mark 1.有多少组- (NSInteger)numberOfSectionsInTableVi...
分类:
移动开发 时间:
2015-08-01 18:47:49
阅读次数:
112
UIPikerView的属性1. numberOfComponents:返回UIPickerView当前的列数NSInteger num = _pickerView.numberOfComponents;NSLog( @"%d", num);2. - (NSInteger)numberOfRowsI...
分类:
移动开发 时间:
2015-08-01 18:40:45
阅读次数:
187
UISegment属性1.segmentedControlStyle设置segment的显示样式。typedef NS_ENUM(NSInteger, UISegmentedControlStyle) {UISegmentedControlStylePlain, // large plain 系统默...
分类:
移动开发 时间:
2015-08-01 18:37:15
阅读次数:
110
在iOS端可以通过AddressBook或者AddressBookUI两个框架实现,区别是第二个框架带视图,一般使用第一个框架就够了。
下面介绍AddressBook框架的使用,注意这个是C语言框架,使用起来比较麻烦。
①请求授权
先判断授权状态,如果未授权则进行授权。
// 1.主动请求授权,先判断授权状态
NSInteger state = ABAddressBookGetAuthor...
分类:
其他好文 时间:
2015-08-01 01:14:32
阅读次数:
164
#import @protocol CustomSelectViewDelegate -(void)selectedButtonTag:(NSInteger)tag;@end@interface CustomSelectView : UIView//红线@property (nonatomic, s...
分类:
其他好文 时间:
2015-07-31 12:36:22
阅读次数:
85
,uitableviewdelegate>tableView处理步骤#pragmamark有多少组-(NSInteger)numberOfSectionsInTableView:(UITableView*)tableView#pragmamark2.第section组头部控件有多-(CGFloat)tableView:(UITableView*)tableViewheightForHeaderInSection:(NSInteger)section#pragmamark3..
分类:
移动开发 时间:
2015-07-30 02:18:14
阅读次数:
186
+(void)setAppIconNumber:(NSInteger)num{ if ([UIParam getIOSVersion]>8.0) { UIUserNotificationSettings *settings = [UIUserNotificationSetting...
分类:
移动开发 时间:
2015-07-29 19:04:48
阅读次数:
137
(NSString *)dateToTime:(NSInteger)integer {NSDate *confromTimesp = [NSDate dateWithTimeIntervalSince1970:integer];NSDateFormatter *dateFormate = [[NSD...
分类:
移动开发 时间:
2015-07-29 15:32:34
阅读次数:
131