points
抽屉效果的第三方库http://www.bkjia.com/IOSjc/993198.html
RESideMenu: 性能不错,自左向右滑动,https://github.com/romaonthego/RESideMenu
Mutual Mobile Drawer Controller:自由向左滑动,缺点不能用比例设定两个viewcontroller 的宽度https://github.com/mutualmobile/MMDrawerController 详细解说网址:http://blog.csdn.net/Morpheus_Dong/article/details/40651999
自右向左滑的第三方们:http://code4app.com/search/mutual%20mobile%20drawer%20controller
单纯的抽屉弹出:http://my.oschina.net/u/574245/blog/390283
自定义alertview:在alertview上添加一个subview 例子:http://blog.csdn.net/toss156/article/details/7552075
afn返回 json和xml解析http://www.bubuko.com/infodetail-1058913.html
人机交互尺寸:https://developer.apple.com/library/ios/documentation/UserExperience/Conceptual/MobileHIG/IconMatrix.html
SDWebImage sd_setImageWithURL: placeholderImage: 给一张默认图片
图文混排:使用NSAttributedString 的福建属性attachment实现
tableview边角设为圆角:http://www.cocoachina.com/bbs/read.php?tid=256043
百度地图使用http://developer.baidu.com/map/index.php?title=iossdk/guide/buildproject
地图后台一直定位http://www.2cto.com/kf/201401/273820.html
地理编码与反地理编码http://www.yusian.com/thread-8364-1-1.html
20151227从0-1Swift三期(流程控制)
链接:http://pan.baidu.com/s/1gdNrZkZ 密码:ykp8
20151226从0-1Swift二期(基本运算符-字符串)
链接:http://pan.baidu.com/s/1kU1L0vt 密码:1ku3
20151222从0-1Swift一期(基础部分)
链接:http://pan.baidu.com/s/1jHpAwIE 密码:ama9
20151211从0-1深入理解ARC
链接:http://pan.baidu.com/s/1hrpEkao 密码 :6n73
20151211从0-1深入理解MRC
链接:http://pan.baidu.com/s/1c1anjAK 密码:73pm
segment:http://www.open-open.com/lib/view/open1429781168526.html
http://www.w3school.com.cn/sql/func_date_format.asp
mysql date_format使用
把这个网址都保存一下 很多有用的函数和详细使用说明
http://www.xuebuyuan.com/2180824.html
IOS开发调用系统相机和打开闪光灯
调用系统功能:
1:给号码自动拨打电话:[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"tel://8008808888"]];
2:输入号码进入短信页面:
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"sms://800888"]];
3:给网址自动调用Safari打开连接
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"http://www.hzlzh.com"]];
4.打开设置
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:UIApplicationOpenSettingsURLString]];
同上
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"prefs:root"]];
//打开系统设置->通用
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"prefs:root=General"]];
5。进入iTunes Store
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@“itms://"]];
设置圆角方法
Objective-C
UIView*view =[[UIView alloc] initWithFrame:frame];
CALayer*layer =[CALayer layer];
UIBezierPath*shadowPath =[UIBezierPath bezierPathWithRoundedRect:frame byRoundingCorners:(UIRectCornerTopLeft|UIRectCornerTopRight) cornerRadii:CGSizeMake(3.0,3.0)];
layer.shadowPath = shadowPath.CGPath;
view.layer.mask = layer;
1
2
3
4
5
UIView*view =[[UIView alloc] initWithFrame:frame];
CALayer*layer =[CALayer layer];
UIBezierPath*shadowPath =[UIBezierPath bezierPathWithRoundedRect:frame byRoundingCorners:(UIRectCornerTopLeft|UIRectCornerTopRight) cornerRadii:CGSizeMake(3.0,3.0)];
layer.shadowPath = shadowPath.CGPath;
view.layer.mask = layer;
圆角剪裁
CAShapeLayer *styleLayer = [CAShapeLayer layer];
UIBezierPath *shadowPath = [UIBezierPath bezierPathWithRoundedRect:self.view.bounds byRoundingCorners:(UIRectCornerTopLeft|UIRectCornerTopRight) cornerRadii:CGSizeMake(4.0, 4.0)];
styleLayer.path = shadowPath.CGPath;
self.view.layer.mask = styleLayer;
self.view.backgroundColor = [UIColor lightGrayColor];
图片翻转;
CGContextRef context=UIGraphicsGetCurrentContext(); [UIView beginAnimations:nil context:context]; [UIView setAnimationCurve:UIViewAnimationCurveEaseInOut]; [UIView setAnimationDuration:1.0]; [UIView setAnimationTransition:UIViewAnimationTransitionFlipFromLeft forView:self.view cache:YES];
//这里时查找视图里的子视图(这种情况查找,可能时因为父视图里面不只两个视图) NSInteger fist= [[self.view subviews] indexOfObject:[self.view viewWithTag:100]]; NSInteger seconde= [[self.view subviews] indexOfObject:[self.view viewWithTag:101]]; [self.view exchangeSubviewAtIndex:fist withSubviewAtIndex:seconde];
//当父视图里面只有两个视图的时候,可以直接使用下面这段.
//[self.view exchangeSubviewAtIndex:0 withSubviewAtIndex:1];
[UIView setAnimationDelegate:self]; [UIView commitAnimations];
带边框颜色的view
UIView *view;
view.clipsToBounds = YES;
view.layer.borderWidth = 1.f;//设置边框宽度
view.layer.borderColor = btnBorderColor.CGColor;//设置边框颜色
view.layer.cornerRadius = 3.f;//设置边角圆弧的半径,设置3.f表示每个角是一个半径为3.f的圆弧;当圆半径为正方形view的边长的一半时,view就显示为一个圆。
sharesdk cocopods
http://wiki.mob.com/cocoapods集成sharesdk标准版/
版本更新http://www.lvtao.net/ios/508.html
uitextfield
http://fkebjiq.blog.163.com/blog/static/182946366201211553457927/
支付宝https://doc.open.alipay.com/doc2/detail.htm?spm=0.0.0.0.oSSHOh&treeId=59&articleId=103676&docType=1
微信http://www.cocoachina.com/bbs/read.php?tid=303132
银链http://www.cocoachina.com/ios/20150724/12739.html
pilist http://blog.devzeng.com/blog/ios-info-dot-plist-config.html
kvc/kvo http://magicalboy.com/kvc_and_kvo/
IOS --- UILabel自适应里面的文字,自动调整宽度和高度的 (2014-04-24 11:10:41)
转载
▼
标签: it
正文开始
UILabel *label = [[UILabel alloc] initWithFrame:CGRectMake(0,0,0,0)];//后面还会重新设置其size。
[label setNumberOfLines:0];
NSString *s = @"string......";
UIFont *font = [UIFont fontWithName:@"Arial" size:12];
CGSize size = CGSizeMake(320,2000);
CGSize labelsize = [s sizeWithFont:font constrainedToSize:size lineBreakMode:UILineBreakModeWordWrap];
[label setFrame:CGRectMake(0, 0, labelsize.width, labelsize.height)];
[self.view addSubView:label];
git
http://git.oschina.net/progit/2-Git-基础.html
http://www.th7.cn/Program/IOS/201504/438330.shtml
NJKWebViewProgress
加载网络进度条的第三方:http://blog.csdn.net/mangosnow/article/details/25914449
UzysAssetsPickerController
图片多选的第三方:
证书过期
http://blog.csdn.net/h1101723183/article/details/50667325
// 按钮绑定方法
[rightCell.addButton addTarget:self action:@selector(addDishButton:event:) forControlEvents:UIControlEventTouchUpInside];
ios-张威 17:40:03
// 增加菜品 按钮事件会把那个单元格的一些信息给带过来(普通菜品的)
-(void)addDishButton:(UIButton *)button event:(id)event
{
// 刷新某个单元格
NSSet * touches = [event allTouches];
UITouch * touch = [touches anyObject];
CGPoint currentSection = [touch locationInView:self.rightTabelView];
NSIndexPath * indexPath = [self.rightTabelView indexPathForRowAtPoint:currentSection];
NSData *imageData = UIImageJPEGRepresentation(good_img_arr[i],1.0);
NSString *image4 =@"data:image/png;base64,";
NSString *image6 = [imageData base64EncodedStringWithOptions:NSDataBase64Encoding64CharacterLineLength];
NSString *image64 = [image4 stringByAppendingString:image6];
[good_img_arr replaceObjectAtIndex:i withObject:image64];
CGSize imageSize = image.size;
CGFloat imageW = 100 * 2;
CGFloat imageH = imageW * imageSize.height / imageSize.width;
UIImage *newImage = [image imageWithImageSimple:image scaledToSize:CGSizeMake(imageW, imageH)];
Edison 11:17:23
链接: http://pan.baidu.com/s/1cgbXvC 密码: rkp8 链接: http://pan.baidu.com/s/1geXepYN 密码: qqi3
http://blog.sina.com.cn/s/blog_8f5097be0101b91z.html
3d效果