Giter Club home page Giter Club logo

qmui_ios's Issues

Xcode playground下的报错

运行环境

  • iOS 设备:Xcode playground
  • 系统版本:iOS 10.0
  • Xcode 版本:8.2

=== 报错如下 ===

  • objc[75558]: Class PLBuildVersion is implemented in both /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/System/Library/PrivateFrameworks/AssetsLibraryServices.framework/AssetsLibraryServices (0x116055998) and /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/System/Library/PrivateFrameworks/PhotoLibraryServices.framework/PhotoLibraryServices (0x115dd4880). One of the two will be used. Which one is undefined.

=============

stackoverflow:(http://stackoverflow.com/questions/39520499/class-plbuildversion-is-implemented-in-both-frameworks)

在oc中有类名冲突, 我想在playground中使用,有什么好的解决方法吗?

使用setNavigationItemsIsInEditMode遇到的问题

运行环境

  • iOS 设备:iPhone
  • 系统版本:iOS 10.2
  • Xcode 版本:8.2.1
  • QMUI iOS 版本: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版本

问题截图

default

qmui_layoutSublayersOfLayer 错误

运行环境

  • iOS 设备:iPhone6s and 模拟器
  • 系统版本:iOS 10.1
  • Xcode 版本:8.2
  • QMUI iOS 版本: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 类似这样

在使用 QMUIEmotion 的时候,能不能只通过displayName 获取到QMUIEmotion 的image?

运行环境

  • iOS 设备:iPhone / iPad / 模拟器
  • 系统版本:iOS 10.x
  • Xcode 版本:8.x
  • QMUI iOS 版本:1.x.x

具体问题描述

@interface QMUIEmotion : NSObject

/// 当前表情的标识符,可用于区分不同表情
@Property(nonatomic, copy) NSString *identifier;

/// 当前表情展示出来的名字,可用于输入框里的占位文字,例如“[委屈]”
@Property(nonatomic, copy) NSString *displayName;

/// 表情对应的图片。若表情图片存放于项目内,则建议用当前表情的identifier作为图片名
@Property(nonatomic, strong) UIImage *image;

/**

  • 快速生成一个QMUIEmotion对象,并且以identifier为图片名在当前项目里查找,作为表情的图片
  • @param identifier 表情的标识符,也会被当成图片的名字
  • @param displayName 表情展示出来的名字
    */
  • (instancetype)emotionWithIdentifier:(NSString *)identifier displayName:(NSString *)displayName;

在textView 获取到的时QMUIEmotion 的 displayName,怎么能够根据 displayName 获取到image 呢?

@EnD

问题截图

QMUILabel 的contentEdgeInsets 在 AutoLayout 下有问题

运行环境

  • iOS 设备:模拟器
  • 系统版本:iOS 8.1
  • Xcode 版本:8.1
  • QMUI iOS 版本:1.1.4

具体问题描述

设置了 label 的 contentEdgeInsets 为 {3,5,3,5} 然后设置AutoLayout 的约束为居中,没有设置宽高,出现无法完整显示的问题。自己写了一个实现重写了 intrinsicContentSize 方法就没问题了。

问题截图

simulator screen shot 2016 12 31 22 35 28

不支持 PHAssetMediaSubtypePhotoLive

运行环境

  • iOS 设备:All
  • 系统版本:iOS 10.2
  • Xcode 版本:8.2
  • QMUI iOS 版本:1.0

具体问题描述

AlbumViewController 不支持 PHAssetMediaSubtypePhotoLive

问题截图

AlbumViewController 不支持 PHAssetMediaSubtypePhotoLive

QMUIImagePickerPreviewViewController 闪退

Xcode8

  • iOS 设备:iPhone / iPad / 模拟器
  • 系统版本:iOS 10.x
  • Xcode 版本:8.x
  • QMUI iOS 版本: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];

解决了问题。

望早日修复。

QMUIGridView用法问题

运行环境

  • iOS 设备:iPhone
  • 系统版本:iOS 10.12.2
  • Xcode 版本:8.2
  • QMUI iOS 版本: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];

问题截图

看了下源码和demo,反馈一下

运行环境

  • iOS 设备:iPhone / iPad / 模拟器
  • 系统版本:iOS 10.x
  • Xcode 版本:8.x
  • QMUI iOS 版本:1.x.x

具体问题描述

有些代码的确写得很好,很规范,但是感觉框架太大型了,想抽取一个组件出来会涉及到很多

问题截图

Storyboard

运行环境

  • iOS 设备:iPhone

具体问题描述

是否支持storyboard混合使用?

QMUIFloatLayoutView 如何右对齐?

运行环境

  • iOS 设备:iPhone / iPad / 模拟器
  • 系统版本:iOS 10.x
  • Xcode 版本:8.x
  • QMUI iOS 版本:1.x.x

具体问题描述

现在的QMUIFloatLayoutView 默认都是左对齐,希望可以增加右对齐的方法

问题截图

在iOS 8+怎么使用CocoaPodsd导入?

运行环境

  • iOS 设备:iPhone / iPad / 模拟器
  • 系统版本:iOS 10.x
  • Xcode 版本:8.x
  • QMUI iOS 版本:1.x.x

具体问题描述

怎么使用CocoaPodsd导入,对说明文档中的
platform :ios, '8.0'
use_frameworks!

不太理解

问题截图

QMUIQQEmotionManager 中的表情显示的文字,怎么在label上显示表情

运行环境

  • iOS 设备:iPhone
  • 系统版本:iOS 10.3
  • Xcode 版本:8.0
  • QMUI iOS 版本:1.2

具体问题描述

1、QMUIQQEmotionManager 中的表情显示的文字,怎么在label上显示表情?
2、输入的表情怎么都在文字前面了,
3、表情键盘右下角的return 按钮的点击事件没有!demo有,pod 没更新!

问题截图

图片预览视图, 快速滑动会闪退

运行环境

  • iOS 设备:iPhone 4s
  • 系统版本:iOS 9.3.5
  • Xcode 版本:8.2
  • QMUI iOS 版本:1.2.0

具体问题描述

图片预览视图, 快速滑动, 会因为内存问题闪退

不是很好的支持xib?都是纯代码控件吗?

具体问题描述

使用QMUITextView时,是使用xib class改成QMUITextView;
发现placetext无效。

问题截图

控件初始化都是

  • (instancetype)initWithFrame:(CGRect)frame {
    }

使用xib时都需要

  • (void)awakeFromNib {
    }

调用初始化里面的方法

使用QDTabBarViewController Tabbar点击后隐藏

运行环境

  • iOS 设备:iPhone / iPad / 模拟器
  • 系统版本:iOS 8.2
  • Xcode 版本:8.x
  • QMUI iOS 版本: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就消失了,就出不来了。如下图

问题截图

d127f46b-abcb-462c-b05b-bf601a367569

Crash

运行环境

  • iOS 设备:模拟器
  • 系统版本:iOS 10.11
  • Xcode 版本:8.1
  • QMUI iOS 版本: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];
}

}`

使用SearchViewController : QMUICommonTableViewController 导航栏pop隐藏不了

运行环境

  • iOS 设备:iPhone / 模拟器
  • 系统版本:iOS 10.
  • Xcode 版本:8.2

具体问题描述

点击mySearchController 搜索结果cell didselect 执行 pop ,会显示一条灰色的导航栏
如何去除??

上个push的 是默认显示系统navigationbar 的,自定义了一个view的

问题截图

2017-01-21 5 53 43
2017-01-21 5 53 50

希望获得相关帮助 谢谢

QMUITextView

运行环境

硬件,系统无关

具体问题描述

QMUITextView 如何关闭log信息

问题截图

QMUIDialogViewController 多选

运行环境

具体问题描述

QMUIDialogViewController 中的多选列表希望可以内置一个属性限制多选项目的数量.

问题截图

什么时候可以投入生产环境使用?

最近打算重构项目,恰好看到良心之作,所以来问询。
另外有一个建议: 在横屏模式下浏览大图的时候,可否将大图的按比例缩放放到屏幕范围内,现在是超出去的状况。

开始使用文章有疏漏...

具体问题描述

在 安装及使用: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 设备: iPhone5
  • 系统版本:iOS 10.2
  • Xcode 版本:8.2
  • QMUI iOS 版本:1.x.x

将项目引入我的工程之后, 首先就出现 NavigationController 的 Crash, 因为我的NavigationController是自定义的, 可能跟UINavigationController+NavigationBarTransition冲突, 导致了 crash

QMUIConfigurationTemplate 不起作用

运行环境

  • iOS 设备:模拟器
  • 系统版本:iOS 10.2
  • Xcode 版本:8.2.1
  • QMUI iOS 版本:1.2.0

具体问题描述

我继承QMUIConfigurationTemplate更改了ButtonbuttonTintColor,但是不起作用.
于是我直接在QMUIConfigurationTemplate更改buttonTintColor也不起作用.一直是默认的蓝色

CocoaPods引入方式失败

具体问题描述

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

小问题

运行环境

  • iOS 设备:iPhone / iPad / 模拟器
  • 系统版本:iOS 10.x
  • Xcode 版本:8.x
  • QMUI iOS 版本:1.x.x

具体问题描述

写的好厉害.但是里面封装的控件耦合性太强了,以后会拆开吗,设计师稍微和我过不去,改点东西,很麻烦.

问题截图

QMUITips 可否提供一个一个类方法hide all QMUITips?

运行环境

  • iOS 设备:iPhone / iPad / 模拟器
  • 系统版本:iOS 10.x
  • Xcode 版本:8.x
  • QMUI iOS 版本:1.x.x

具体问题描述

需求是通过类方法创建一个showLoading view,但是存在隐藏的条件有很多,不希望在当前控制器创建一个全局变量来控制隐藏这个Loading view

问题截图

可否提供一个类似 hide hud 的全局类方法呢?

确实很牛逼,赞一个

有点美中不足的是在选择相册图片那里,虽然可以预览但是没有显示原图的按钮。

更新1.3.0之后运行出错

运行环境

  • iOS 设备:iPhone / iPad / 模拟器
  • 系统版本:iOS 10.2.1
  • Xcode 版本:8.2.1
  • QMUI iOS 版本:1.3.0

具体问题描述

在AppDelegate 里面设置 [QMUIConfigurationManager renderGlobalAppearances];后应用打开直接崩溃在QMUIConfigurationManager.m 第230行!!!

问题截图

E3A04D69-9221-45A2-A4FB-6F101A5A7B74.png

QMUIDemo中Components ->QMUIPickingImage操作闪退

运行环境

  • iOS 设备:iPhone / 模拟器
  • 系统版本:iOS 10.2
  • Xcode 版本:8.1
  • QMUI iOS 版本:1.x.x QMUIDemo中版本

具体问题描述

操作步骤: 1 : Run Demo > 选择Componments -> QMUIPickingImage
2 : 选择任意一个列表 ->进入相册 ->选中一张图片->点击预览->再取消选中图片
控制台j截图 :

问题截图

控制台截图 :
2017-01-06 4 51 24

操作Gif :
qmui_imagebug

导航条显示问题

运行环境

  • iOS 设备:iPhone
  • 系统版本:iOS 10.2.1
  • Xcode 版本:8.2 (8C38)
  • QMUI iOS 版本:1.2(CocoaPods)

具体问题描述

  • 当我使用 UITableViewConTroller (实现了 QMUINavigationControllerDelegate 协议, 其实和是没有实现这个协议没关系) 的时候,如果使用了优化导航栏在转场时的样式 feature 的话,由于不知道什么原因,虽然执行了添加 TransitionNavigationBar 的代码,但 并没有添加成功,而又对原本的导航栏进行了隐藏,导致看到了 黑色 的背景

  • 但是换成其他控制器却没有这个问题

问题截图

2017-02-17 11 07 28

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.