qmui / qmuidemo_ios Goto Github PK
View Code? Open in Web Editor NEWSample Code for QMUI iOS
Home Page: http://qmuiteam.com/ios
Sample Code for QMUI iOS
Home Page: http://qmuiteam.com/ios
iPhone XR
iOS 13.3.1
11.3.1
2020-03-13 github上的版本
真机安装失败,模拟器可以,网上搜了很多都没有解决。刚接触iOS,还不太懂。
dyld: Library not loaded: @rpath/QMUIKit.framework/QMUIKit
Referenced from: /private/var/containers/Bundle/Application/71A779ED-EB88-4020-B0AC-02864D41385D/qmuidemo.app/qmuidemo
Reason: no suitable image found. Did find:
/private/var/containers/Bundle/Application/71A779ED-EB88-4020-B0AC-02864D41385D/qmuidemo.app/Frameworks/QMUIKit.framework/QMUIKit: code signature invalid for '/private/var/containers/Bundle/Application/71A779ED-EB88-4020-B0AC-02864D41385D/qmuidemo.app/Frameworks/QMUIKit.framework/QMUIKit'
(lldb)
iOS 12.3
11.2
4.0.2
使用故事版或者XIB创建QMUITextView,编译运行时会崩溃,
Could not instantiate class named _UITextLayoutView because no class named _UITextLayoutView was found; the class needs to be defined in source code or linked in from a library (ensure the class is part of the correct target
iPhone
iOS 12.3.1
10.2.1
3.2.1
点击列表最下面的几个坑位进入后点击返回按钮后,页面自动向上滚动一段
iOS Bate 14.1
11.5
4.1.3
刚开始使用QMUI,发现QMUICommonViewController与FlexLib中的FlexBaseVC都需要做为项目基类,但Object-C又不支持多继承,这种情况该怎么处理?
iPhone
/ iPad
/ 模拟器
iOS 10.x
8.x
1.x.x
framework not found LookinServer?
Bug 表现
QMUIDemo_iOS中,QDImagePickerExampleViewController采用默认相册控件,在[sendImageWithImagesAssetArray]方法中下载iCloud图片后,本身的asset就变为空,导致imagesAssetArray为0 element,实际上就是iCloud下载的图片没有正常回调
如何重现
预期的表现
其他信息
请问可以动态修改字体大小吗
iPhone
/ iPad
/ 模拟器
iOS 12.4
10.3
3.2.1
目前两个库同时使用的话会报重复错误:Duplicate interface definition for class 'YYImage'
和这个错误
'CGRectApplyAffineTransformWithAnchorPoint' has different definitions in different modules; definition in module 'QMUIKit.QMUICommonDefines' first difference is function body
dyld: Library not loaded: @rpath/QMUIKit.framework/QMUIKit
Referenced from: /var/containers/Bundle/Application/A77569E6-2BC0-4B8A-8B68-CE87E301F0F6/qmuidemo.app/qmuidemo
Reason: image not found
Xcode 8.2.1 iPhone 6 10.1.1
模拟器正常运行
我觉得把它们放到一个仓库比较方便, 因为 Demo 应该也不算大
iPhone
/ iPad
/ 模拟器
iOS 10.x
8.x
1.x.x
首页的2个GridViewController QMUIkit和Component往下滑动一点,进入任意一个下级演示页面再返回的时候,GridViewController总是往上抖动一下
iPhone
/ iPad
/ 模拟器
iOS 13
11
3.2.1
Assertion failure in -[_UINavigationBarContentView setDirectionalLayoutMargins:], /BuildRoot/Library/Caches/com.apple.xbs/Sources/UIKitCore/UIKit-3899.13.13/_UINavigationBarContentView.m:708
*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Client error attempting to change layout margins of a private view'
iPhone
/ iPad
/ 模拟器
iOS 10.x
8.x
1.x.x
模拟器
iOS 9.0
11.0
您好 我目前出现了 使用xcode11编译 iOS9.0上会crash的问题 找了很多资料 也不知道应该怎么修复 ,无意中看到 你们第三方框架 资料上显示 修复了 这个问题
"
修复使用 Xcode 11 编译到 iOS 9.0 上启动后会因为 Symbol not found: OBJC_CLASS$_PHLivePhotoRequestOptions 而 crash 的系统 bug。
"
想请教下 是如何修复的
谢谢 !
iPhone
/ iPad
/ 模拟器
iOS 10.x
8.x
1.x.x
iPhone
/ iPad
/ 模拟器
iOS 13.4
11.4
4.0.0
使用导航栏自定义样式时,回到主界面再次进入应用,导航栏样式自动切换回当前主题样式。
iPhone
/ iPad
/ 模拟器
iOS 10.15
10.3
4.0.0
点击关于页面,然后左滑一小段距离,释放会发现状态栏变成黑色。
iPhone
/ iPad
/ 模拟器
iOS 10.x
8.x
1.x.x
iOS 11.0
9.0
1.0.0
UITableView+QMUI 中 qmui_reloadSections 会导致项目崩溃
准备翻译成Swift。
希望熟悉Swift,并且熟悉Swift编程规范的朋友能和我一起早日完成翻译工程。
期间使用Swiftformat,保证代码风格
https://github.com/huangboju/QMUI.swift
iPhone
/ iPad
/ 模拟器
iOS 10.x
8.x
1.x.x
#define ExtendImplementationOfVoidMethodWithSingleArgument(_targetClass, _targetSelector, _argumentType, _implementationBlock) OverrideImplementation(_targetClass, _targetSelector, ^id(__unsafe_unretained Class originClass, SEL originCMD, IMP (^originalIMPProvider)(void)) {
return ^(__unsafe_unretained __kindof NSObject *selfObject, _argumentType firstArgv) {
void (originSelectorIMP)(id, SEL, _argumentType);
originSelectorIMP = (void ()(id, SEL, _argumentType))originalIMPProvider();
originSelectorIMP(selfObject, originCMD, firstArgv);
_implementationBlock(selfObject, firstArgv);
};
});
#define ExtendImplementationOfVoidMethodWithTwoArguments(_targetClass, _targetSelector, _argumentType1, _argumentType2, _implementationBlock) OverrideImplementation(_targetClass, _targetSelector, ^id(__unsafe_unretained Class originClass, SEL originCMD, IMP (^originalIMPProvider)(void)) {
return ^(__unsafe_unretained __kindof NSObject *selfObject, _argumentType1 firstArgv, _argumentType2 secondArgv) {
void (originSelectorIMP)(id, SEL, _argumentType1, _argumentType2);
originSelectorIMP = (void ()(id, SEL, _argumentType1, _argumentType2))originalIMPProvider();
originSelectorIMP(selfObject, originCMD, firstArgv, secondArgv);
_implementationBlock(selfObject, firstArgv, secondArgv);
};
});
iPhone8
iOS 12.1.1
10.1
2.9.1
在部分界面需要做导航栏透明,使用返回透明图片的方法,发现没有效果
- (UIImage *)navigationBarShadowImage{
return nil;
}
- (UIImage *)navigationBarBackgroundImage{
return [UIImage qmui_imageWithColor:UIColorMakeWithRGBA(66, 66, 66, 0)];
}
是否能支持修改导航栏的透明度呢?
iOS 13.0
11.0
3.2.1
一启动就闪退
闪退断点处:QMUINavigationButton.m 585行
// 强制修改 contentView 的 directionalLayoutMargins.leading,在使用自定义返回按钮时减小 8
if (@available(iOS 11, *)) {
ExtendImplementationOfVoidMethodWithoutArguments([UINavigationBar class], @selector(layoutSubviews), ^(UINavigationBar *selfObject) {
UIView *contentView = selfObject.qmui_contentView;
if (contentView) {
NSDirectionalEdgeInsets value = contentView.directionalLayoutMargins;
value.leading = value.trailing - (selfObject.qmui_customizingBackBarButtonItem ? 8 : 0);
contentView.directionalLayoutMargins = value;
}
});
}
闪退报错信息:
2019-07-08 15:12:03.319818+0800 qmuidemo[3637:1268069] Metal API Validation Enabled
2019-07-08 15:12:03.449945+0800 qmuidemo[3637:1267840] *** Assertion failure in -[_UINavigationBarContentView setDirectionalLayoutMargins:], /BuildRoot/Library/Caches/com.apple.xbs/Sources/UIKitCore/UIKit-3890.4/_UINavigationBarContentView.m:707
2019-07-08 15:18:52.672720+0800 qmuidemo[3637:1268071] XPC connection interrupted
2019-07-08 15:18:52.674394+0800 qmuidemo[3637:1267840] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Client error attempting to change layout margins of a private view'
*** First throw call stack:
(0x1aae32750 0x1aab5c3a4 0x1aad358f0 0x1ab1682bc 0x1ae52dee4 0x104e8be44 0x104e8cf28 0x104ef1174 0x1af24c174 0x104dfd480 0x104e61dc4 0x1ae503000 0x1b17c8c40 0x1b17cd464 0x1af238764 0x1ae72902c 0x1ae729260 0x1ae732794 0x1ae7cd484 0x1ae72f8e0 0x1af2430bc 0x1af242e94 0x1af242e94 0x1af242e94 0x1af242e94 0x1af237414 0x1af2372ec 0x1af24599c 0x104df8f14 0x1ae7ea9d8 0x1ae7f1788 0x1ae8fa888 0x1ae7f1718 0x1af23eb4c 0x1ae7f1580 0x1ae6ecaa0 0x1ae6f2058 0x1ae6ec02c 0x1ae6e99c8 0x1aee02e88 0x1aee03408 0x1aee13bb0 0x10444c738 0x10444bfa8 0x1aedc34c8 0x1aedc5298 0x1aedca848 0x1ae5b8c30 0x1aea35400 0x1ae5b9714 0x1ae5b9224 0x1ae5b953c 0x1ae5b8e00 0x1ae5bd000 0x1ae969a08 0x1aea4e3f4 0x1ae5bcc8c 0x1aea4e2f0 0x1ae5bcae0 0x1ae43fe70 0x1ae43ecf0 0x1ae43fba8 0x1aedc8be0 0x1ae98acfc 0x1afe2e0fc 0x1afe54b38 0x1afe38b50 0x1afe547f4 0x105146c48 0x10514a074 0x1afe7a59c 0x1afe7a268 0x1afe7a7a4 0x1aadb05fc 0x1aadb0554 0x1aadafcec 0x1aadaae38 0x1aadaa6d8 0x1b50d8328 0x1aedcca5c 0x10448bc70 0x1aac35c7c)
libc++abi.dylib: terminating with uncaught exception of type NSException
iPhone
/ iPad
/ 模拟器
iOS 10.x
8.x
1.x.x
iPhone
/ iPad
/ 模拟器
iOS 10.x
8.x
请问下,侧滑和导航返回按钮怎么调用popToRootViewController和popToViewController跳到指定VC?
有什么方法可以拦截这个手势?
烦请解答
进入子页面后点击列表无效
iOS 8.1 simulator
iPhone
/ iPad
/ 模拟器
iOS 10.x
8.x
1.x.x
导入这个框架就会这样
iPhone
/ iPad
/ 模拟器
iOS 10.3
11.3
4.0.0
使用了QMUINavigationController,看了demo中各种主题的切换,效果都很好。目前是想让app处于某个主题下,比如“Pink Rose”,然后保留系统的导航条样式,找了好久也没有发现要怎么设置才能做到,也不知道哪里可以获得咨询和帮助,在这里发个issue请教下。
在QMUIConfigurationTemplate设置 QMUICMI.navBarBackgroundImage为白色,或者是nil都不是系统的bar样式,而且切换时,有闪动的灰黑色过渡动画。
新功能建议:感觉取消选中或者选中之前拦截判断,很重要
1.比如我想实现,判断选中5张图片,或者一个视频,应该开放一个代理,来拦截选中的资源,如果是选完图片就不能选择视频,我现在只能选择完视频后才能知道提示但是,视频已经被选中了
麻烦有微信群吗 [email protected]
iPhone
/ iPad
/ 模拟器
iOS 10.x
8.x
1.x.x
iPhone
/ iPad
/ 模拟器
iOS 11
9
2.0.0
尝试使用QMUIConfiguration.sharedInstance()中的属性,不能生效。
模拟器
iOS 12.2
/iOS 13
11.0
4.0.0-beta
您好,在 Xcode 11 Build QMUI 为 4.0.0-bate 版本的 QMUIDemo 时遇到提示 framework not found LookinServer
,导致无法运行。
请问,是我缺少了什么配置导致这个原因么
以下是错误提示信息:
`
Ld /Users/gorcat/Library/Developer/Xcode/DerivedData/qmuidemo-fgofatwjhruwvhekzninjbpurbiy/Build/Products/Debug-iphonesimulator/qmuidemo.app/qmuidemo normal x86_64 (in target 'qmuidemo' from project 'qmuidemo')
cd /Users/gorcat/文档/development/SwiftUI/QMUIDemo_iOS-master
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -target x86_64-apple-ios9.0-simulator -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.0.sdk -L/Users/gorcat/Library/Developer/Xcode/DerivedData/qmuidemo-fgofatwjhruwvhekzninjbpurbiy/Build/Products/Debug-iphonesimulator -F/Users/gorcat/Library/Developer/Xcode/DerivedData/qmuidemo-fgofatwjhruwvhekzninjbpurbiy/Build/Products/Debug-iphonesimulator -F/Users/gorcat/文档/development/SwiftUI/QMUIDemo_iOS-ma -Fster/Users/gorcat/文档/development/SwiftUI/QMUIDemo_iOS-master/qmuidemo/Frameworks -filelist /Users/gorcat/Library/Developer/Xcode/DerivedData/qmuidemo-fgofatwjhruwvhekzninjbpurbiy/Build/Intermediates.noindex/qmuidemo.build/Debug-iphonesimulator/qmuidemo.build/Objects-normal/x86_64/qmuidemo.LinkFileList -Xlinker -rpath -Xlinker @executable_path/Frameworks -dead_strip -Xlinker -object_path_lto -Xlinker /Users/gorcat/Library/Developer/Xcode/DerivedData/qmuidemo-fgofatwjhruwvhekzninjbpurbiy/Build/Intermediates.noindex/qmuidemo.build/Debug-iphonesimulator/qmuidemo.build/Objects-normal/x86_64/qmuidemo_lto.o -Xlinker -export_dynamic -Xlinker -no_deduplicate -Xlinker -objc_abi_version -Xlinker 2 -fobjc-arc -fobjc-link-runtime -ObjC -weak_framework LookinServer -Xlinker -sectcreate -Xlinker __TEXT -Xlinker __entitlements -Xlinker /Users/gorcat/Library/Developer/Xcode/DerivedData/qmuidemo-fgofatwjhruwvhekzninjbpurbiy/Build/Intermediates.noindex/qmuidemo.build/Debug-iphonesimulator/qmuidemo.build/qmuidemo.app-Simulated.xcent /Users/gorcat/Library/Developer/Xcode/DerivedData/qmuidemo-fgofatwjhruwvhekzninjbpurbiy/Build/Products/Debug-iphonesimulator/QMUIKit.framework/QMUIKit -framework MediaPlayer -weak_framework Photos -lxml2 -framework CFNetwork -framework SystemConfiguration -framework Security -lz -Xlinker -dependency_info -Xlinker /Users/gorcat/Library/Developer/Xcode/DerivedData/qmuidemo-fgofatwjhruwvhekzninjbpurbiy/Build/Intermediates.noindex/qmuidemo.build/Debug-iphonesimulator/qmuidemo.build/Objects-normal/x86_64/qmuidemo_dependency_info.dat -o /Users/gorcat/Library/Developer/Xcode/DerivedData/qmuidemo-fgofatwjhruwvhekzninjbpurbiy/Build/Products/Debug-iphonesimulator/qmuidemo.app/qmuidemo
ld: warning: directory not found for option '-F/Users/gorcat/文档/development/SwiftUI/QMUIDemo_iOS-ma'
ld: warning: directory not found for option '-Fster/Users/gorcat/文档/development/SwiftUI/QMUIDemo_iOS-master/qmuidemo/Frameworks'
ld: framework not found LookinServer
clang: error: linker command failed with exit code 1 (use -v to see invocation)
`
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.