Comments (5)
LCUserFeedbackViewController *feedbackViewController = [[LCUserFeedbackViewController alloc] init];
feedbackViewController.feedbackTitle = @"用户反馈";
feedbackViewController.contact = nil;
// 隐藏联系人表头
feedbackViewController.contactHeaderHidden = YES;
// 决定返回按钮和样式
feedbackViewController.presented = NO;
// 不设置导航栏样式
feedbackViewController.navigationBarStyle = LCUserFeedbackNavigationBarStyleBlue;
feedbackViewController.hidesBottomBarWhenPushed=YES;
// feedbackViewController.navigationController.navigationBarHidden=NO;
UITabBarController *tabVC = (UITabBarController *) _navigationController.visibleViewController;
UINavigationController *pushClassStance = (UINavigationController *)tabVC.viewControllers[0];
// // 跳转到对应的控制器
[pushClassStance pushViewController:feedbackViewController animated:YES];
from leancloud-feedback-ios.
同遇到
from leancloud-feedback-ios.
+1
from leancloud-feedback-ios.
我看了它demo是没有问题的,估计是因为不是用的constraints写的所以在- (void)viewDidAppear:(BOOL)animated位置变了:修改方法:
- (void)viewDidAppear:(BOOL)animated {
[super viewDidAppear:animated];
if (!_inputTextField) {
[self setupUI];
// [self keyboardWillHide:nil];
[self loadFeedbackThreads];
}
}
记得给Viewcontroller的view 加个背景颜色。
from leancloud-feedback-ios.
几个子 view 定义时没有考虑到 navigationitem 的 height,导致 addImageButton、inputTextField、sendButton 的位置超出屏幕了,只需要将这三个 view 的 frame 的 y 减去64即可。
@zhuozhuo 的方法也可行,不过push 的时候会有短暂的卡顿。
from leancloud-feedback-ios.
Related Issues (20)
- 导航条设置不透明导致输入组件无法显示 HOT 4
- 使用push形式弹出用户反馈页面,点击反馈后整个界面就变黑 HOT 5
- 大部分反馈消息都会发送两次 HOT 3
- AVOSCloud 静态库签名导致真机测试老是提示证书出错 HOT 4
- viewWillAppear方法中获取未读消息数是错误的
- 升级AVOSCloud到3.2.2会报错,退回3.1.7.1就没问题了 HOT 4
- hidesBottomBarWhenPushed如果为yes,输入栏消失了 HOT 1
- 在 React Native 如何使用呢?
- 自定义了全局[UINavigationBar appearance]后,导航栏无显示,并且toolbar跑到屏幕外面了
- iPhone5下弹出键盘后底部黑边
- 用户反馈后台显示iOS设备为other
- 手机客户端中用户反馈不显示标题
- Swift 3 + CocoaPods 界面不显示图片 HOT 3
- 在控制台删除用户反馈后收不到用户正在发送的信息
- Objective-C + Cocoapods 反馈界面也不出现默认的图片,包括气泡和输入框左边的按钮图片
- 获取未读消息方法countUnreadFeedbackThreadsWithBlock获取的数据,第一次阅读后不改变
- 请问能不能开放获取反馈的api? HOT 3
- 编译不通过 HOT 2
- 适配最新 Objective-C SDK
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from leancloud-feedback-ios.