- 博客(15)
- 资源 (2)
- 收藏
- 关注
原创 [Android]如何使用Anko(不断更新中)
一.Anko简介:http://blog.csdn.net/cjh_android/article/details/73121411 二.如何安装:下载插件:下载Anko插件。 过程: 点击 studio 左上角的 File -> setting -> plugin -> -> 配置gradle:https://github.com/Kotl...
2017-09-30 02:31:06 576
原创 [Android]如何使用RecycleView in Kotlin project
1. In xml<android.support.v7.widget.RecyclerView android:id="@+id/forecast_list" android:layout_width="match_parent" android:layout_height="match_parent"/> 2.I...
2017-09-30 00:23:01 114
原创 (转)[IOS] 创建类扩展文件
转自:http://blog.csdn.net/idoshi201109/article/details/51735461 Xcode7 中创建类扩展文件这边对如何在Xcode7 中创建类扩展文件,做一个补充记录,因为在开发讨论群中还是见到不断的有童鞋在问这样子的问题。记得这是Xcode6开始,类扩展文件的创建更Xcode5以及之前创建的位置改变了。这边我配图说明写下,之前也有关于...
2017-09-27 16:11:21 1060
原创 (转)iOS代码实现获得项目名称及版本号(Version/Build)
转自:http://www.jianshu.com/p/d2332cfd1d60 app名称:NSDictionary *infoDictionary = [[NSBundle mainBundle] infoDictionary];NSString *app_Name = [infoDictionary objectForKey:@"CFBundleDisplayNam...
2017-09-27 14:35:06 177
原创 [IOS](转)EXC_BAD_ACCESS(code=2,address=0xcc 异常解决 及 建议不要在子线程中刷新界面...
转自:http://www.cnblogs.com/ygm900/archive/2013/12/04/3457130.html iOS 上不建议在非主线程进行UI操作,在非主线程进行UI操作有很大几率会导致程序崩溃,或者出现预期之外的效果。我开始不知道这一点,在子线程中进行了弹窗操作,结果程序就出问题了!报的错误是(EXC_BAD_ACCESS(code=2,address=...
2017-09-25 17:27:33 1267
原创 [IOS](转)使用SharedApplication进行传值
转自:http://blog.csdn.net/panjican/article/details/51332219 一般而言,在iOS中页面间传值,常见的方法有四种, 1 使用SharedApplication,定义一个变量来传递. 2 使用文件plist,或者NSUserdefault来传递 3 通过一个单例的class来传递 4 通过Delegat...
2017-09-22 16:39:34 250
原创 [IOS](转) IOS开发相关07--UITableView默认选中第一个cell
转自:http://blog.csdn.net/yishengzhiai005/article/details/52913735 NSInteger selectedIndex = 0;NSIndexPath *selectedIndexPath = [NSIndexPath indexPathForRow:selectedIndex inSection:0]; [self.ta...
2017-09-22 11:56:12 219
原创 [IOS]单例
使用dispatch_once + (instancetype)instance { static PSDrawerManager *manager = nil; static dispatch_once_t onceToken; dispatch_once(&onceToken, ^{ manager = [[PSDrawerMa...
2017-09-21 12:36:30 97
原创 [IOS]富文本:自定义定义缩进、行距
NSMutableParagraphStyle *style = [[NSMutableParagraphStyle defaultParagraphStyle] mutableCopy]; //行距 style.lineSpacing = [ScreenAdaptUtil scalingSwitch:1.25]; //首行缩进 style.firstLi...
2017-09-20 16:34:30 2113
原创 [IOS]How does uitableview cell remain highlighted?
参考:https://stackoverflow.com/questions/1840614/why-does-uitableview-cell-remain-highlighted - (void)viewWillAppear:(BOOL)animated{ [super viewWillAppear:animated]; // Unselect the...
2017-09-19 17:41:00 94
原创 [IOS]textView自动滚动到底部
UITextView text content doesn't start from the top 参考:https://stackoverflow.com/questions/26835944/uitextview-text-content-doesnt-start-from-the-top 我使用的是这种方法: override func viewWillAppea...
2017-09-19 17:08:10 1788
原创 [IOS]侧边栏相关问题总结
p://www.jianshu.com/p/4b4439d73a27 3.table cell 间距:https://stackoverflow.com/questions/6216839/how-to-add-spacing-between-uitableviewcell使用section分隔,注意indexPath.row 转换成 indexPath.section 4.从UIView跳转到UIController 5.navigationcontroller 跳转的问题:
2017-09-18 12:17:51 105
原创 (转)IPv6地址格式
转自:https://tieba.baidu.com/p/3985626373 IPv6的地址长度是128位(bit)。将这128位的地址按每16位划分为一个段,将每个段转换成十六进制数字,并用冒号隔开。例如:2000:0000:0000:0000:0001:2345:6789:abcd这个地址很长,可以用两种方法对这个地址进行压缩,前导零压缩法:将每一段的前导零省略,但是每一段都至少...
2017-09-07 14:33:28 1224
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人