- 博客(9)
- 收藏
- 关注
原创 Error creating project. Could not find an option named "androidx".
Error creating project. Could not find an option named "androidx". Empty folders are created, but no project. flutter upgrade --force
2020-02-17 14:36:34
619
转载 iOS中关闭屏幕旋转功能时如何判断屏幕方向
原文地址:http://www.jianshu.com/p/692e7a490747 本来一般情况可以使用通知来做 [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(orientChange:) name:UIDeviceOrientationDidChangeNotification
2015-11-13 10:54:32
1525
原创 iOS 整体项目竖屏 相机横屏
//横屏方法: AppDelegate.m 中添加监听 //监听页面翻转 [[NSNotificationCenter defaultCenter]addObserver:self selector:@selector(setOrientationPortrait:) name:KNotification_setOrientationPortrait o
2015-11-02 15:16:55
8478
原创 iOS 图片不显示越界部分
self.imageView = [[UIImageView alloc]initWithFrame:CGRectMake(0, 0, ImageW, ImageH)]; self.imageView.contentMode = UIViewContentModeScaleAspectFill; self.imageView.clipsToBo
2015-11-02 14:40:59
1169
原创 iOS 进度条 UIProgressView
- (void)initProgressView{ _myProgressView = [[UIProgressView alloc]initWithProgressViewStyle:UIProgressViewStyleDefault]; _myProgressView.frame = CGRectMake(0, 4, DTSCREEN_WIDTH
2015-10-30 17:43:06
933
原创 iOS 设置button的image偏移量
[_carbrandBtn setContentHorizontalAlignment:UIControlContentHorizontalAlignmentLeft]; [_carbrandBtn setImageEdgeInsets:UIEdgeInsetsMake(0, 100, 0, 0)];
2015-10-28 19:07:17
1534
转载 Xcode .gitignore
切换到git控制的程序目录 从别处拷贝 或者自己创建一个.gitignore 内容如下 Xcode /Demo/Demo-Info.plist .DS_Store /build/ *.pbxuser !default.pbxuser *.mode1v3 !default.mode1v3 *.mode2v3 !default.mode2v3 *.perspectiv
2015-10-28 18:22:25
590
原创 iOS开发之不会就百度: UISearchController 修改外观
- (void)initSearchController{ _searchController = [[UISearchController alloc] initWithSearchResultsController:nil]; _searchController.searchBar.tintColor = LogoColor; _s
2015-10-28 10:51:52
560
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人