![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
iOS开发
码上转运
转行干iOS
展开
-
C语言快速排序
#include #include //快速排序void quickSort();int main(int argc, const char * argv[]){ int num_really[11]; for (int i = 0; i < 11; i++) { num_really[i] = arc4random() % (90 - 10 + 1)原创 2015-01-17 17:58:50 · 356 阅读 · 0 评论 -
iOS开发-地图02-指南针
#import "ViewController.h"#import @interface ViewController ()@property (nonatomic, strong) CLLocationManager *manager;@property (nonatomic, strong) UIImageView *imageView;@end@implementatio原创 2015-08-03 09:03:54 · 470 阅读 · 0 评论 -
iOS开发-Storyboard实现cell的动态高度
今天用Storyboard实现动态的cell高度,遇到了点麻烦,查了很多博客,最终实现了想要的效果,下面把方法介绍出来,我近可能的写的详细些。 1、先创建一个cell的xib,并且绑定。 2、在xib中拖入一个lable 其中label的约束是上左右分别是10,下是>=30, 3、然后创建一个TableViewController原创 2015-07-23 00:46:14 · 2372 阅读 · 0 评论 -
iOS开发-地图03-地理编码
#import "ViewController.h"#import @interface ViewController ()/** * 需要编码的地址容器 */@property (weak, nonatomic) IBOutlet UITextField *addressField;/** * 经度容器 */@property (weak, nonatomic) IB原创 2015-08-03 09:34:37 · 365 阅读 · 0 评论 -
iOS开发-地图01-corelocation
#import "ViewController.h"#import @interface ViewController () @property (nonatomic, strong) CLLocationManager *manager;@end@implementation ViewController- (void)viewDidLoad { [super vi原创 2015-08-03 08:56:49 · 369 阅读 · 0 评论 -
iOS开发-UITableViewCell(UICollectionViewItem)需要两个手指点击或者长按才可以选中,解决办法
今天写代码遇到一个特别诡异的问题,就是在我的cell中需要两个手指点击才可以选中先介绍下我的视图结构ViewController->UITableView->自定义Cell产生这样的原因是,我在ViewController.view上加了一个手势,导致了Cell不能点按的结果,把那个手势移除掉就好了同理CollectionView也不可以加虽然解决了问题,但是我还有个疑问,View原创 2015-07-21 20:06:37 · 2378 阅读 · 1 评论 -
iOS开发-使用storyboard实现UILabel的自适应高度(iOS8)
好久没有写博客了,以后多写些博客,对自己是一种提升,对大家也是一种帮助 最近特别痴迷storyboard和xib的可视化编程,在写项目的时候遇到个问题就是如何使UILabel自适应高度,查了好多文章博客,没有太好的办法,我就自己手动搞了搞,实现了自己想要的效果,下面分享出来相信大家都遇到这种情况,label没有根据text的字数来自适应高度 那么如何使UIL原创 2015-07-21 00:55:49 · 3725 阅读 · 2 评论 -
IOS学习-UI_模态_页面跳转
模态跳转和返回第一个Controller中的// 模态跳转- (void)buttonAction:(UIButton *) button { FirstViewController *firstVC = [[FirstViewController alloc] init]; firstVC.view.backgroundColor = [UIColor whiteCol原创 2015-03-14 17:48:06 · 654 阅读 · 0 评论 -
iOS学习-移除键盘
- (BOOL)textFieldShouldReturn:(UITextField *)textField{ [textField resignFirstResponder]; return YES;}- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event{ [self.usernameT原创 2015-03-14 17:50:18 · 662 阅读 · 0 评论 -
iOS学习-手势
// 手势 iOS系统支持七种手势类型// UIGestureRecognizer 是手势类,他是一个抽象类,我们一般不用它来进行实例化和使用,二十用它的子类// 1、轻拍手势 UITapGestureRecognizer *tap = [[UITapGestureRecognizer alloc] initWithTarget:self action:@sele原创 2015-03-14 17:54:21 · 357 阅读 · 0 评论 -
实现<NSCopying>协议
实现<NSCopying> 协议原创 2015-02-25 10:28:19 · 654 阅读 · 0 评论 -
C语言归并算法
#include #include void splitArrays();void sortArrays(int num[], int start, int mid, int end);int main(int argc, const char * argv[]){ int num_really[11]; for (int i = 0; i < 11; i++) {原创 2015-01-17 16:27:58 · 723 阅读 · 0 评论