- 博客(19)
- 收藏
- 关注
原创 Mysql常用语句
1、查某个表的内容select * from table_name;2、修改某字段的值,例如修改formContent的值为content,where后加判断条件update table_name set formContent='content' where id='80b3e0e48';
2021-04-22 10:57:37 87
原创 MySQL 非主键设置自增
有个需求:需要给数据列表添加一个序号(序号为1、2、3....),需要自增alter table table_name add num(序号) int auto_increment not null Unique;需加unique才能设置自增成功,否则会报错Incorrect table definition; there can be only one auto column and it must be defined as a key...
2021-04-19 14:15:26 1233
原创 git忽略不需要提交某个文件
Administrator@PC-20200315ZDSU MINGW64 ~/MyProject/business/common-business (dev)$ git update-index --assume-unchanged src/main/resources/bootstrap.yml忽略提交文件git update-index --assume-unchanged 文件目录(此时所在文件夹为根目录)取消git update-index --no-assume-unchan.
2021-04-16 15:48:26 464
原创 provisioning profile doesn't include signing certificate
打包的时候出现 Library not loaded:@rpath/BoringSSL.framework ............. Reason: image not foundtarget->general->embedded binaries中加入动态库(.framework文件)
2017-07-03 11:21:03 6697
原创 iOS设置UILabel的不同颜色字体
// 设置不同的字体 let str:NSMutableAttributedString =NSMutableAttributedString.init(string: priceStr) str.addAttribute(NSForegroundColorAttributeName, value:RGBCOLOR(r: 102,
2017-06-30 15:04:44 469
转载 iOS UILabel根据字体,自适应宽度
//这个frame是初设的,没关系,后面还会重新设置其size。NSDictionary *attributes = @{NSFontAttributeName:[UIFont systemFontOfSize:20],};NSString *str = @"这里是lab里的内容";CGSize textSize = [str boundingRectWithSize:CGSizeMa
2016-08-31 10:39:24 3012
原创 iOS tabBarItem的选中与非选中时,背景颜色,字体颜色
//设置tabBar的背景颜色,使用的方法//设置tabbar的背景//tabBar和navigationBar结合使用,tabBarItem的图片设置
2016-07-18 09:28:02 6365
原创 iOS tabbarItem的颜色都是白色,点击其中一个,其他的不变,没有点中的效果
//未被选中的图片效果不变 [navigtion.tabBarItemsetTitleTextAttributes:[NSDictionarydictionaryWithObjectsAndKeys:[UIColorwhiteColor], NSForegroundColorAttributeName,nil] forState:UIControlStateNor
2016-06-21 17:53:56 1310
原创 iOS 在tableView上消退键盘
给tableView添加手势UITapGestureRecognizer *gesture = [[UITapGestureRecognizeralloc]initWithTarget:selfaction:@selector(resignKeyBoardGestureWithTableView:)]; gesture.cancelsTouchesInView =NO
2016-05-24 16:44:49 1022
原创 iOS 由中英文数字组成 正则表达式
NSString *regex = @"^[a-zA-Z0-9\u4e00-\u9fa5]+$"; NSPredicate *pre = [NSPredicatepredicateWithFormat:@"SELF MATCHES %@",regex]; BOOL isMatch = [pre evaluateWithObject:str];
2016-04-27 18:03:10 357
原创 iOS tabbar和navigation组合,点击item两次,会pop到上一个页面,解决不让控制器跳转的方法
问题描述:just found out something: If you have a Tabbar combined with a NavigationController (that has some views on it's stack) and you double click the TabBarItem, the view pops to the first ViewCon
2016-04-18 14:40:27 1469
原创 iOS 在tableView或scrollView上,消退键盘
给tableView或scrollview添加手势1.UITapGestureRecognizer *gesture = [[UITapGestureRecognize alloc]initWithTarget:self action:@selector(resignKeyBoardGestureWithTableView:)];2.gesture.cancelsTouches
2016-04-15 14:12:36 488
原创 iOS解决navigationBar因为图片尺寸问题造成的会向上偏移64的问题
在控制器里viewDidLoad里加入以下代码self.navigationController.navigationBar.translucent =NO;self.automaticallyAdjustsScrollViewInsets =NO;
2016-04-14 11:28:50 473
原创 隐藏底部的tabbar
在第一个控制器的跳转代码里加入:self.hidesBottomBarWhenPushed =YES;MorePlayRecordsViewController *morePlayRecordsVC = [MorePlayRecordsViewControllernew];morePlayRecordsVC.morePlayRecordsTag = [NSStr
2016-04-14 11:19:21 513
原创 pop跳转到指定的控制器
for (UIViewController *tempin self.navigationController.viewControllers) { if ([temp isKindOfClass:[MyLoginViewController class]]) { [self.navigationC
2016-04-08 11:19:27 1887
原创 tabBar控制器,跳转到指定的页面
self.tabBarController.selectedIndex =i;(其中i为想要跳转的页面的下标,从0开始)
2016-04-01 11:55:23 960
原创 设置tabbar有被选中的效果,添加背景
//设置tabbar有被选中的效果,添加背景 self.tabBar.selectionIndicatorImage = [UIImageimageNamed:@"tabon_bg"];
2016-03-31 14:58:47 328
原创 iOS 设置NavigationItem的Title的字体大小和颜色
UIFont *font = [UIFontfontWithName:@"Arial-ItalicMT"size:21]; NSDictionary *dic =@{NSFontAttributeName:font, NSForegroundColorAttributeName: [UIColorwhiteColor]}; self.naviga
2016-03-24 10:37:42 11615 1
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人