随笔分类 -  代码片段

ios
摘要:<!DOCTYPE html><html lang="zh-CN"><style type="text/css">.navbar-nav .dropdown-menu-width{ min-width: 100px; background-color: black; color: white;}.n 阅读全文
posted @ 2018-02-28 15:01 xiaoxiaoxigua 阅读(184) 评论(0) 推荐(0) 编辑
摘要:<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=0"> </head> <bo 阅读全文
posted @ 2018-01-25 17:08 xiaoxiaoxigua 阅读(755) 评论(0) 推荐(0) 编辑
摘要:+ (UIImageView *)rotate360DegreeWithImageView:(UIImageView *)imageView{ CABasicAnimation *animation = [ CABasicAnimation animationWithKeyPath: @"trans 阅读全文
posted @ 2017-02-20 15:18 xiaoxiaoxigua 阅读(620) 评论(0) 推荐(0) 编辑
摘要://微博个人中心- (void)configTableView{//image 高度375; testTableView = [[UITableView alloc] initWithFrame:CGRectMake(0, 0, kScreenWith, kScreenHeight)]; tes... 阅读全文
posted @ 2015-12-14 17:21 xiaoxiaoxigua 阅读(241) 评论(0) 推荐(0) 编辑
摘要://微博弹性动画- (void)moveInAnimation{ UIView *centerV = [[UIView alloc] initWithFrame:CGRectMake(0, 200, 300, 100)]; [self.view addSubview:centerV]; ... 阅读全文
posted @ 2015-12-14 17:19 xiaoxiaoxigua 阅读(158) 评论(0) 推荐(0) 编辑
摘要:[[UINavigationBar appearance] setTintColor:[UIColor colorWithWhite:0.0 alpha:0.0f]];//去掉导航栏 的阴影线self.navigationController.navigationBar.clipsToBounds ... 阅读全文
posted @ 2015-09-23 16:57 xiaoxiaoxigua 阅读(367) 评论(0) 推荐(0) 编辑
摘要:self.view.window.rootViewController.modalPresentationStyle = UIModalPresentationCurrentContext; //半透明 BiaoQianViewController *biaoQianVC = [[BiaoQi... 阅读全文
posted @ 2015-09-23 13:43 xiaoxiaoxigua 阅读(272) 评论(0) 推荐(0) 编辑
摘要:CATransition *animation = [CATransition animation]; animation.duration = 0.4; animation.timingFunction = UIViewAnimationCurveEaseInOut; animation.f... 阅读全文
posted @ 2015-09-18 11:37 xiaoxiaoxigua 阅读(244) 评论(0) 推荐(0) 编辑
摘要:@interface GroupReportViewController () { BOOL isFirstLocation;}@property(nonatomic,strong)BMKMapView* mapView;@property(nonatomic,strong)BMKLocation... 阅读全文
posted @ 2015-09-10 18:17 xiaoxiaoxigua 阅读(715) 评论(0) 推荐(0) 编辑
摘要:动画组合(uber启动时的等待效果代码)- (void)startAnimation {self.layer.masksToBounds=0;self.layer.cornerRadius=50;if(self.layer.sublayers==nil) { [selfsetUpAnimation]... 阅读全文
posted @ 2015-08-19 12:53 xiaoxiaoxigua 阅读(174) 评论(0) 推荐(0) 编辑
摘要:YTKNetwork 是猿题库 iOS 研发团队基于 AFNetworking 封装的 iOS 网络库,其实现了一套 High Level 的 API,提供了更高层次的网络访问抽象。YTKNetwork 使用基础教程https://github.com/yuantiku/YTKNetwork/blo... 阅读全文
posted @ 2015-08-14 18:56 xiaoxiaoxigua 阅读(410) 评论(0) 推荐(0) 编辑
摘要:- (BOOL) isBlankString:(NSString *)string { if (string == nil || string == NULL) { return YES; } if ([string isKindOfClass:[NSNull class]]) { ... 阅读全文
posted @ 2015-08-10 11:32 xiaoxiaoxigua 阅读(185) 评论(0) 推荐(0) 编辑
摘要:UIView *view2 = [[UIView alloc] initWithFrame:CGRectMake(120, 10, 80, 80)]; view2.backgroundColor = [UIColor redColor]; [self.view addSubview:view2]; ... 阅读全文
posted @ 2015-08-03 14:18 xiaoxiaoxigua 阅读(1102) 评论(0) 推荐(0) 编辑
摘要:iOS7光标问题有网友遇到textView在ios7上出现编辑进入最后一行时光标消失,看不到最后一行,变成盲打,stackOverFlow网站上有大神指出,是ios7本身bug,加上下面一段代码即可(网友调试得出,在此mark一下,有问题,欢迎大神们指出)1234567891011121314151... 阅读全文
posted @ 2015-07-28 19:38 xiaoxiaoxigua 阅读(189) 评论(0) 推荐(0) 编辑
摘要:NSDictionary*infoDictionary=[[NSBundlemainBundle]infoDictionary];NSString*name=[infoDictionaryobjectForKey:@"CFBundleDisplayName"];NSString*version=[i... 阅读全文
posted @ 2015-06-01 12:43 xiaoxiaoxigua 阅读(268) 评论(0) 推荐(0) 编辑
摘要:1、block作为变量时,属性应为(nonatomic,copy),在注册通知时需要在dealloc或者viewdisapper方法中remove掉。2、在UIViewController里面使用了timer,会使得controller被retain,因此在viewdisapper或者dealloc... 阅读全文
posted @ 2015-03-31 10:53 xiaoxiaoxigua 阅读(133) 评论(0) 推荐(0) 编辑
摘要:1、报文头需要密码验证的- (void)sendAsynWebServiceRequest:(NSString *)nameSpace method:(NSString *)method requestXmlString:(NSString *)requestXmlString{ NSStri... 阅读全文
posted @ 2015-03-19 15:32 xiaoxiaoxigua 阅读(1020) 评论(0) 推荐(0) 编辑
摘要:SSKeyChains 阅读全文
posted @ 2015-03-03 14:44 xiaoxiaoxigua 阅读(199) 评论(0) 推荐(0) 编辑
摘要:1234567对于Arrayif (array && array.count) {}对于字符串Stringif (string && string.length && [string isEqualToString:@""]) 阅读全文
posted @ 2014-05-15 10:48 xiaoxiaoxigua 阅读(2798) 评论(0) 推荐(0) 编辑
摘要://// NVDate.h//// Created by Noval Agung Prayogo on 2/5/14.// Copyright (c) 2014 Noval Agung Prayogo. All rights reserved.//#import typedef NS_OPTIONS(NSUInteger, NVDayUnit) { NVDayUnitSunday = 1, NVDayUnitMonday = 2, NVDayUnitTuesday = 3, NVDayUnitWednesday = 4, NVDayUnitThursday = 5, NVDa... 阅读全文
posted @ 2014-03-31 09:23 xiaoxiaoxigua 阅读(1493) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示