tencent / qmui_ios Goto Github PK
View Code? Open in Web Editor NEWQMUI iOS——致力于提高项目 UI 开发效率的解决方案
Home Page: http://qmuiteam.com/ios
License: Other
QMUI iOS——致力于提高项目 UI 开发效率的解决方案
Home Page: http://qmuiteam.com/ios
License: Other
=== 报错如下 ===
=============
stackoverflow:(http://stackoverflow.com/questions/39520499/class-plbuildversion-is-implemented-in-both-frameworks)
在oc中有类名冲突, 我想在playground中使用,有什么好的解决方法吗?
如题
iPhone
iOS 10.2
8.2.1
1.2
- (void)setNavigationItemsIsInEditMode:(BOOL)isInEditMode animated:(BOOL)animated { [super setNavigationItemsIsInEditMode:isInEditMode animated:animated]; self.navigationItem.rightBarButtonItem = [QMUINavigationButton barButtonItemWithType:QMUINavigationButtonTypeNormal title:@"取消" position:QMUINavigationButtonPositionRight target:self action:NULL]; }
只是要在Navigation上加一个按钮,但使用这个方法会报Reference to 'QMUINavigationButtonTypeNormal' is ambiguous
这个VC是继承QMUICommonViewController
,并且Navigation也是使用QMUINavigationController
来实现的。
还有个问题是通过self.title = @"首页";
不能更改导航条文字。
还有现在通过cocoapods搜不到1.3版本
iPhone6s
and 模拟器
iOS 10.1
8.2
1.1.4
在搞tableview 的时候
(void)qmui_layoutSublayersOfLayer:(CALayer *)layer {
[self qmui_layoutSublayersOfLayer:layer];
if (self.qmui_borderPosition == QMUIBorderViewPositionNone) {
return;
}
[self qmui_layoutSublayersOfLayer:layer];这里出现了莫名的错误
BuildRoot/Library/Caches/com.apple.xbs/Sources/UIKit/UIKit-3599.6.1/UITableView.m:8035
重新继承UITableView 也会出现相同错误
如题,可能楼主的项目适合于较新的项目使用,面对沉重的历史包袱,想用难度有点大!
可否根据特色,拆分出一些组件,这样使用起来更好一些吧。
比如,QMAlert 类似这样
简单说就是,可以选择局部引入自己想要的模块?
iPhone
/ iPad
/ 模拟器
iOS 10.x
8.x
1.x.x
iPhone
/ iPad
/ 模拟器
iOS 10.x
8.x
1.x.x
@interface QMUIEmotion : NSObject
/// 当前表情的标识符,可用于区分不同表情
@Property(nonatomic, copy) NSString *identifier;
/// 当前表情展示出来的名字,可用于输入框里的占位文字,例如“[委屈]”
@Property(nonatomic, copy) NSString *displayName;
/// 表情对应的图片。若表情图片存放于项目内,则建议用当前表情的identifier
作为图片名
@Property(nonatomic, strong) UIImage *image;
/**
QMUIEmotion
对象,并且以identifier
为图片名在当前项目里查找,作为表情的图片在textView 获取到的时QMUIEmotion 的 displayName,怎么能够根据 displayName 获取到image 呢?
iOS 10.2
8.2
1.0
AlbumViewController 不支持 PHAssetMediaSubtypePhotoLive
AlbumViewController 不支持 PHAssetMediaSubtypePhotoLive
iPhone
/ iPad
/ 模拟器
iOS 10.x
8.x
1.x.x
在多选模式下,选中多张图片后,点击“预览”,然后在预览里取消所有选择,回到图片列表,点击任意一张indexpath.row大于之前选中的图片的总数的图片,程序就会崩溃,官方提供的demo程序也是如此。
具体的说:
打开官方demo应用“QMUI”->选择"Components" ->选择“QMUIPickingImage” -> 选择“默认” -> 选中任意两张图片 -> 点击左下角“预览” -> 点击右上角取消选中 -> 右滑取消另一张图片的选中 -> 返回 -> 点击第三张或之后的任意一张图片 -> 闪退。
QMUIImagePreviewView.m中第96行
[self.collectionView scrollToItemAtIndexPath:[NSIndexPath indexPathForItem:currentImageIndex inSection:0] atScrollPosition:UICollectionViewScrollPositionCenteredHorizontally animated:animated];
在这里self.collectionView 的item还是之前预览时的数据,没有刷新。currentImageIndex 越界了。
我在QMUIImagePickerPreviewViewController.m 第202行和203行之间插入以下代码:
[self.imagePreviewView.collectionView reloadData];
解决了问题。
望早日修复。
iPhone
iOS 10.12.2
8.2
1.1.4
QMUIGridView怎么使用的,看了api没看懂,没有回调,没有办法设置item,不清楚怎么使用,也没有demo可看,用layout和设置frame的方式都没看到效果,代码如下:
QMUIGridView *gridView = [[QMUIGridView alloc]initWithColumn:4 rowHeight:4];
gridView.frame = self.view.bounds;
gridView.separatorColor = [UIColor redColor];
gridView.separatorWidth = 1.0;
gridView.backgroundColor = [UIColor lightGrayColor];
[self.view addSubview:gridView];
iPhone
/ iPad
/ 模拟器
iOS 10.x
8.x
1.x.x
有些代码的确写得很好,很规范,但是感觉框架太大型了,想抽取一个组件出来会涉及到很多
iPhone
是否支持storyboard混合使用?
iPhone
iOS 10.3
8.0
1.2.0
环境是Xcode8.2,语言Swift3
好像不能引入framework
iPhone
/ iPad
/ 模拟器
iOS 10.x
8.x
1.x.x
现在的QMUIFloatLayoutView 默认都是左对齐,希望可以增加右对齐的方法
iPhone
/ iPad
/ 模拟器
iOS 10.x
8.x
1.x.x
iPhone
/ iPad
/ 模拟器
iOS 10.x
8.x
1.x.x
should be easy to see the problem.
https://github.com/QMUI/QMUI_iOS/blob/0d1f8ff1596f01ba04a0c096d342a2b2b1acf05b/QMUIKit/UIComponents/QMUITips.m#L213
iPhone
/ iPad
/ 模拟器
iOS 10.x
8.x
1.x.x
怎么使用CocoaPodsd导入,对说明文档中的
platform :ios, '8.0'
use_frameworks!
不太理解
iPhone
iOS 10.3
8.0
1.2
1、QMUIQQEmotionManager 中的表情显示的文字,怎么在label上显示表情?
2、输入的表情怎么都在文字前面了,
3、表情键盘右下角的return 按钮的点击事件没有!demo有,pod 没更新!
iPhone
4siOS 9.3.5
8.2
1.2.0
图片预览视图, 快速滑动, 会因为内存问题闪退
使用QMUITextView时,是使用xib class改成QMUITextView;
发现placetext无效。
控件初始化都是
使用xib时都需要
调用初始化里面的方法
iPhone
/ iPad
/ 模拟器
iOS 8.2
8.x
1.2.0
**QDTabBarViewController *tabBarViewController = [[QDTabBarViewController alloc] init];
//首页
HomeViewController *homeVC = [HomeViewController new];
QDNavigationController *homeNavController = [[QDNavigationController alloc] initWithRootViewController:homeVC];
homeNavController.hidesBottomBarWhenPushed = NO;
homeNavController.tabBarItem = [QDUIHelper tabBarItemWithTitle:@"首页" image:[UIImageMake(@"wdsy") imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal] selectedImage:UIImageMake(@"sysyl") tag:0];
//咨询
ConsultViewController *consultVC = [ConsultViewController new];
QDNavigationController *consultNavController = [[QDNavigationController alloc] initWithRootViewController:consultVC];
consultNavController.hidesBottomBarWhenPushed = NO;
consultNavController.tabBarItem = [QDUIHelper tabBarItemWithTitle:@"咨询" image:[UIImageMake(@"syzx") imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal] selectedImage:UIImageMake(@"syzxs") tag:0];
//客户
ClientViewController *clientVC = [ClientViewController new];
QDNavigationController *clientNavController = [[QDNavigationController alloc] initWithRootViewController:clientVC];
clientNavController.hidesBottomBarWhenPushed = NO;
clientNavController.tabBarItem = [QDUIHelper tabBarItemWithTitle:@"客户" image:[UIImageMake(@"sykf") imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal] selectedImage:UIImageMake(@"sykfs") tag:0];
//我的
SettingViewController *myVC = [SettingViewController new];
QDNavigationController *myNavController = [[QDNavigationController alloc] initWithRootViewController:myVC];
myNavController.hidesBottomBarWhenPushed = NO;
myNavController.tabBarItem = [QDUIHelper tabBarItemWithTitle:@"我的" image:[UIImageMake(@"sysz") imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal] selectedImage:UIImageMake(@"wdsz1") tag:0];
tabBarViewController.viewControllers = @[homeNavController, consultNavController, clientNavController, myNavController];
self.window.rootViewController = tabBarViewController;**
SettingViewController、ClientViewController、HomeViewController、ConsultViewController控制器都继承与QMUICommonViewController,在点击tabbar的时候tabbar就消失了,就出不来了。如下图
iPhone
/ iPad
/ 模拟器
iOS 10.x
8.x
1.x.x
为什么cocoapods找不到呢?
模拟器
iOS 10.11
8.1
1.1.4
有时候会 crash,打断点是断到了这个函数
`- (void)qmui_layoutSubviews
{
[self qmui_layoutSubviews];//这一行
if (self.qmui_shouldShowDebugColor) {
self.qmui_hasDebugColor = YES;
self.backgroundColor = [self debugColor];
[self renderColorWithSubviews:self.subviews];
}
}`
硬件,系统无关
QMUITextView 如何关闭log信息
QMUIDialogViewController 中的多选列表希望可以内置一个属性限制多选项目的数量.
没有继承QMUICommonViewController
,在iOS 8上crash了
这个类是设计成只能在iOS 9之后使用吗?
如果开源的话,我们使用的时候有什么不懂的地方,就能直接对照Demo查看了.这样很方便
最近打算重构项目,恰好看到良心之作,所以来问询。
另外有一个建议: 在横屏模式下浏览大图的时候,可否将大图的按比例缩放放到屏幕范围内,现在是超出去的状况。
你好我想知道,QMUITableViewCellPosition 的作用怎么理解,另外咱们有没有技术群
在 安装及使用:http://qmuiteam.com/ios/page/start.html 中,使用步骤描述有疏漏
具体位置:
点击项目 project 进入 Xcode 配置界面,在 General -> Linked Frameworks and Libraried 点击加号搜索并添加QMUIKit.framework到列表里面,然后在使用的地方 #import <QMUIKit/QMUIKit.h> 即可(如果有pch文件,只要在pch文件中import一次就够了)。
应该是:
点击项目 project 进入 Xcode 配置界面,在 General -> Linked Frameworks and Libraried 点击加号搜索并添加QMUIKit.framework到列表里面,并且在General -> Embedded Binaries中点击加号搜索并添加QMUIKit.framework到列表里面(否则真机运行会报错:dyld: Library not loaded:...),然后在使用的地方 #import <QMUIKit/QMUIKit.h> 即可(如果有pch文件,只要在pch文件中import一次就够了)。
如题
iOS 10.2
8.2
1.x.x
将项目引入我的工程之后, 首先就出现 NavigationController 的 Crash, 因为我的NavigationController是自定义的, 可能跟UINavigationController+NavigationBarTransition冲突, 导致了 crash
模拟器
iOS 10.2
8.2.1
1.2.0
我继承QMUIConfigurationTemplate
更改了Button
的buttonTintColor
,但是不起作用.
于是我直接在QMUIConfigurationTemplate
更改buttonTintColor
也不起作用.一直是默认的蓝色
pod install时,提示 [!] Unable to find a specification for QMUIKit (~> 1.1.4)
并用pod search QMUIKit时,提示[!] Unable to find a pod with name, author, summary, or description matching QMUIKit
iPhone
/ iPad
/ 模拟器
iOS 10.x
8.x
1.x.x
写的好厉害.但是里面封装的控件耦合性太强了,以后会拆开吗,设计师稍微和我过不去,改点东西,很麻烦.
iPhone
/ iPad
/ 模拟器
iOS 10.x
8.x
1.x.x
QMUIKit
iPhone
/ iPad
/ 模拟器
iOS 10.x
8.x
1.x.x
需求是通过类方法创建一个showLoading view,但是存在隐藏的条件有很多,不希望在当前控制器创建一个全局变量来控制隐藏这个Loading view
可否提供一个类似 hide hud 的全局类方法呢?
有点美中不足的是在选择相册图片那里,虽然可以预览但是没有显示原图的按钮。
iPhone
iOS 10.2.1
8.2 (8C38)
1.2(CocoaPods)
当我使用 UITableViewConTroller (实现了 QMUINavigationControllerDelegate 协议, 其实和是没有实现这个协议没关系) 的时候,如果使用了优化导航栏在转场时的样式
feature 的话,由于不知道什么原因,虽然执行了添加 TransitionNavigationBar 的代码,但 并没有添加成功,而又对原本的导航栏进行了隐藏,导致看到了 黑色
的背景
但是换成其他控制器却没有这个问题
Maybe we just need UI component not include those swizzled method. So I advice use submodule.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.