随笔分类 -  IOS开发

1 2 下一页

ios热修复
摘要:参考链接:http://www.cnblogs.com/jys509/p/5943600.html 阅读全文

posted @ 2017-08-04 14:42 彪biao 阅读(115) 评论(0) 推荐(0)

swift里面!和?的作用
摘要:一般我们在以下两种情况下会遇到!和?的使用1.声明变量时 var number: Int? var str: String? 2.在对变量操作时 number?.hashValue str!.hashValue 由于这两种情况的意义不同,所以分开进行解释: 1>.声明变量时在声明一个变量时,如果不手 阅读全文

posted @ 2016-02-18 11:18 彪biao 阅读(4200) 评论(0) 推荐(0)

AFNetworking上传下载图片
摘要:1 #pragma mark 上传图片 2 -(void)Upload{ 3 4 UIImage * image = [UIImage imageNamed:@"iphone.png"]; 5 AFHTTPRequestOperationManager *manager ... 阅读全文

posted @ 2016-01-22 11:45 彪biao 阅读(2041) 评论(0) 推荐(0)

横向滚动的UITableView
摘要:横向滚动的UITableView1.实现思路旋转tableview,90度,cell也旋转90度,上代码: 1 _tableView.transform =CGAffineTransformMakeRotation(-M_PI /2); 2 3 //delegate 4 -(UITable... 阅读全文

posted @ 2015-12-25 10:46 彪biao 阅读(878) 评论(0) 推荐(0)

iPhone屏幕尺寸、分辨率及适配
摘要:1.iPhone尺寸规格设备iPhone宽Width高Height对角线Diagonal逻辑分辨率(point)Scale Factor设备分辨率(pixel)PPI3GS2.4 inches (62.1 mm)4.5 inches (115.5 mm)3.5-inch320x480@1x320x4... 阅读全文

posted @ 2015-10-21 10:05 彪biao 阅读(160) 评论(0) 推荐(0)

UITapGestureRecognizer 和UIPanGestureRecognizer的使用,触摸和滑动
摘要:/*** 点击了进度条背景*/- (IBAction)tapProgressBg:(UITapGestureRecognizer *)sender { CGPoint point = [sender locationInView:sender.view]; // 切换歌曲的当前播放时间 se... 阅读全文

posted @ 2015-10-14 15:39 彪biao 阅读(948) 评论(0) 推荐(0)

IOS自定义UITableViewCell的高亮背景色
摘要:IOS的sdk中,对UITableViewCell的高亮背景色只支持两种颜色,分别为UITableViewCellSelectionStyleBlue和UITableViewCellSelectionStyleGray。那么如何自定义这个颜色呢。一个思路是当用户点下cell时设置你想要的cell的背... 阅读全文

posted @ 2015-07-22 13:59 彪biao 阅读(464) 评论(0) 推荐(0)

IOS计算字符串尺寸
摘要:.h#import @interface NSString (Extension)/** * 返回字符串所占用的尺寸 * * @param font 字体 * @param maxSize 最大尺寸 */- (CGSize)sizeWithFont:(UIFont *)font maxS... 阅读全文

posted @ 2015-07-22 09:17 彪biao 阅读(248) 评论(0) 推荐(0)

自定义iOS7导航栏背景,标题和返回按钮文字颜色
摘要:http://blog.csdn.net/mad1989/article/details/41516743 阅读全文

posted @ 2015-07-20 14:55 彪biao 阅读(103) 评论(0) 推荐(0)

自定义uitableviewcell,层层封装
摘要:封装,好处:减少viewcontroller累里的代码量,方便后期维护cell:.h1 #import 2 @class HMStatusFrame;3 4 @interface HMStatusCell : UITableViewCell5 + (instancetype)cellWithTabl... 阅读全文

posted @ 2015-07-13 09:06 彪biao 阅读(308) 评论(0) 推荐(0)

加载storyboard和xib文件
摘要:// 加载storyboard UIStoryboard *storyboard = [UIStoryboard storyboardWithName:@"Two" bundle:nil]; // 创建storyboard里面灰色的控制器 //找到shtoryboar... 阅读全文

posted @ 2015-07-07 10:23 彪biao 阅读(446) 评论(0) 推荐(0)

iOS Animation 主流炫酷动画框架(特效)收集整理
摘要:参见地址:https://github.com/sxyx2008/DevArticles/issues/91 阅读全文

posted @ 2015-07-06 10:23 彪biao 阅读(482) 评论(0) 推荐(0)

代理demo
摘要:1- .h#import typedef enum { HMStatusDetailTopToolbarButtonTypeRetweeted, HMStatusDetailTopToolbarButtonTypeComment,} HMStatusDetailTopToolbarBut... 阅读全文

posted @ 2015-07-06 10:01 彪biao 阅读(188) 评论(0) 推荐(0)

block学习(一)
摘要:1.定义block的两种方式: -直接定义: //@property (nonatomic,copy) void (^callBack)(NSInteger index,id info); -type定义,重用 typedef void (^callBack)(NSInteger i... 阅读全文

posted @ 2015-07-06 09:46 彪biao 阅读(140) 评论(0) 推荐(0)

自定义UIView整理(1)
摘要:1.UICollectionView实现不同大小cell等间距下载地址:http://download.csdn.net/detail/chchong1234/8692121 阅读全文

posted @ 2015-07-01 20:57 彪biao 阅读(119) 评论(0) 推荐(0)

UIWebView自适应宽度
摘要:见地址:http://borissun.iteye.com/blog/2023712 阅读全文

posted @ 2015-06-29 16:46 彪biao 阅读(110) 评论(0) 推荐(0)

ios自定义NSLog的输出内容
摘要:本文章转发自:http://my.oschina.net/juwenz/blog/178781问题NSLog输出的信息很少,格式如下Date Time OurApp[] NSLog output数据可能像这样20131111 12:35:35.025 TestApp[460:c07] Hello w... 阅读全文

posted @ 2015-06-29 13:23 彪biao 阅读(479) 评论(0) 推荐(0)

代码控制Autolayout
摘要:-(void)setupView{ // 代码方式实现自动布局 VFL // 创建一个Tableview; UITableView *tableView = [[UITableView alloc] init]; //tableView.backgroundColor = [... 阅读全文

posted @ 2015-06-18 11:49 彪biao 阅读(134) 评论(0) 推荐(0)

UIStroryboard分类
摘要:#import "UIStoryboard+WF.h"@implementation UIStoryboard (WF)+(void)showInitialVCWithName:(NSString *)name{ UIStoryboard *storyboard = [UIStoryboard... 阅读全文

posted @ 2015-06-15 00:03 彪biao 阅读(120) 评论(0) 推荐(0)

ios基础笔记(一)
摘要:1. 设置按钮文字的尺寸 为 按钮自己的尺寸 button.size = [button.currentTitle sizeWithFont:button.titleLabel.font]; button.backgroundColor=[UIColor redColor];2... 阅读全文

posted @ 2015-06-01 10:29 彪biao 阅读(181) 评论(0) 推荐(0)

1 2 下一页

导航