随笔分类 -  OC

排序UI实现--新手版
摘要:// // ViewController.m // SortWithLabel // // Created by whunf on 16/3/3. // Copyright © 2016年 whunf. All rights reserved. // #import "ViewController. 阅读全文

posted @ 2016-03-03 13:10 程序修炼之道 阅读(341) 评论(0) 推荐(0)

图片的偏移和旋转问题
摘要:#import "ViewController.h" @interface ViewController () { UIImageView *imgView; int x; int y; } @end @implementation ViewController - (void)viewDidLoa 阅读全文

posted @ 2016-02-24 12:02 程序修炼之道 阅读(810) 评论(0) 推荐(0)

关于指针变量编译和运行时
摘要:指针变量编译时只能运行编译时的方法,不能调用运行时类型的方法,即使它实际所指对象确实包含该方法。Father* fa=[[Son alloc]init];编译时是:Father 运行时时:Son解决方法: 强制转换成子类类型,这样 编译和运行时的类型就相同了//下面编译时类型和运行时类型不一样,多态... 阅读全文

posted @ 2015-11-28 16:39 程序修炼之道 阅读(254) 评论(0) 推荐(0)

OC 出现中文乱码
摘要:@interface NSArray (Log)@end#import "NSArray+Log.h"@implementation NSArray (Log)- (NSString *)descriptionWithLocale:(id)locale{ NSMutableString *str =... 阅读全文

posted @ 2015-11-28 16:35 程序修炼之道 阅读(913) 评论(0) 推荐(0)

导航