![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
我的iOS代码库
wyccrazyguy
自学能力强
展开
-
创建可拖拽的视图(手势识别)
1.AppDelegate.h//// AppDelegate.h// DragButtonDemo//// Created by zhangmh on 12-7-20.// Copyright (c) 2012年 __MyCompanyName__. All rights reserved.//#import @class ViewController;@in原创 2015-05-16 21:30:19 · 394 阅读 · 0 评论 -
iOS 实现图片作为接口
代码效果1.在ViewController.h中加入@property (nonatomic ,strong) UIButton *btn;@property (nonatomic , strong)UIImage *btnImageOn;@property (nonatomic , strong)UIImage *btnImageOff;@pro原创 2015-06-04 22:03:42 · 440 阅读 · 0 评论 -
如何创建上导航栏
效果如图所示.1.首先创建一个Single View Application工程2.然后将view controller嵌入到一个navigation controller中。代码如下:1.AppDelegate.h//// AppDelegate.h// test1//// Created by air on 15/5/18.// Cop原创 2015-05-17 20:26:18 · 413 阅读 · 0 评论 -
iOS添加xib
1. 添加一个xib,通过new file ——User Interface ——View2. 在AppDelegate.m中添加 NSArray *views = [[NSBundle mainBundle]loadNibNamed:@"View" owner:self options: nil];//在AppDelegate中加载xib,View为xib的名字 [self原创 2015-06-07 08:17:10 · 1075 阅读 · 0 评论