Git Product home page Git Product logo

Comments (5)

beiguancyc avatar beiguancyc commented on June 14, 2024

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.

neil-wu avatar neil-wu commented on June 14, 2024

同遇到

from leancloud-feedback-ios.

fdddf avatar fdddf commented on June 14, 2024

+1

from leancloud-feedback-ios.

zhuozhuo avatar zhuozhuo commented on June 14, 2024

我看了它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.

Dada08 avatar Dada08 commented on June 14, 2024

几个子 view 定义时没有考虑到 navigationitem 的 height,导致 addImageButton、inputTextField、sendButton 的位置超出屏幕了,只需要将这三个 view 的 frame 的 y 减去64即可。

@zhuozhuo 的方法也可行,不过push 的时候会有短暂的卡顿。

from leancloud-feedback-ios.

Related Issues (20)

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.