- 博客(8)
- 收藏
- 关注
原创 复制文字到剪切板
UIPasteboard *pasteboard = [UIPasteboardgeneralPasteboard]; pasteboard.string =self.label.text;
2015-10-22 21:08:13
235
原创 PageControl
//// RootView.m// UI7PageControl///Users/lanouhn/Downloads// Created by lanouhn on 15-8-5.// Copyright (c) 2015年 lanouhn. All rights reserved.//#import "RootView.h"@implementat
2015-08-06 08:47:00
284
原创 NSSegmentAndSlider
#import "RootViewController.h"@interface RootViewController ()@end@implementation RootViewController- (void)loadView{ [super loadView]; self.rootView = [[RootView alloc] in
2015-08-06 08:42:40
230
转载 OC总结
1、定义类:@interface 类名 : 父类@end2、使用:(冒号)表示继承一个类Student : NSObject3、使用()定义一个Catagory(类别)*作用:在不改变原有类结构的基础上,扩展原有类的方法(不能扩展属性),但不建议重载原有类的方法*开发工具默认生成的文件为:类名+Catagory名称*Catagory可以写在单独的
2015-08-03 22:18:55
217
原创 霓虹灯
#import "RootView.h"#import "UIColor+RsndomColor.h"@implementation RootView- (instancetype)initWithFrame:(CGRect)frame{ self =[super initWithFrame:frame]; if (self){
2015-08-03 22:17:15
222
原创 雪花
#import "RootView.h"#import "UIColor+RandomColor.h"@implementation RootView- (instancetype)initWithFrame:(CGRect)frame{ self =[super initWithFrame:frame]; if (self){ [s
2015-08-03 22:16:05
269
原创 手势
//手势 //轻拍手势 //轻拍手势UITap //创建轻拍手势对象 UITapGestureRecognizer *tap = [[UITapGestureRecognizer alloc]initWithTarget:self action:@selector(tapAction:)]; //设置手指头个
2015-08-03 22:15:08
171
原创 实现图片的水平移动
- (BOOL)application:(UIApplication *)applicationdidFinishLaunchingWithOptions:(NSDictionary *)launchOptions { self.window= [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen]bounds]]; /
2015-08-03 22:11:35
665
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人