Git Product home page Git Product logo

leancloud-feedback-ios's Introduction

The user feedback API is deprecated. We recommend you use LeanStorage to implement the feedback feature instead.

leancloud-feedback-ios's People

Contributors

chenyilong avatar isaced avatar jwfing avatar lzwjava avatar tang3w avatar weakish avatar zapcannon87 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

leancloud-feedback-ios's Issues

viewWillAppear方法中获取未读消息数是错误的

用户反馈意见后,返回列表页,在列表页的viewWillAppear方法中,获取未读消息,number值为1(此时应该为0),
同样的代码在viewDidAppear中number则为0
[[LCUserFeedbackAgent sharedInstance] countUnreadFeedbackThreadsWithBlock:^(NSInteger number, NSError *error) {
if (error) {
// 网络出错了,不设置红点
} else {
// 根据未读数 number,设置红点,提醒用户
}
}];

多語系

中文的描述希望使用多語系
例如 LCUserFeedbackImageViewController.m title 應該使用

self.title = NSLocalizedString(@"LCUserFeedbackImageViewController_Title", nil);

而不是

self.title = @"詳情";

导航条设置不透明导致输入组件无法显示

透明

不透明

    LCUserFeedbackViewController *feedbackViewController = [[LCUserFeedbackViewController alloc] init];
    feedbackViewController.feedbackTitle = nil;
    feedbackViewController.contact = nil;

    UINavigationController *navigationController = [[UINavigationController alloc] initWithRootViewController:feedbackViewController];

  // 修改透明度
    [navigationController.navigationBar setTranslucent:NO];

    [self presentViewController:navigationController animated:YES completion:^{
    }];

第一次编译的时候会报错

git clone ,直接打开 Demo里的xcodeproj ,编译会报错。报错说 AVOSCloud 的一些头文件没找到。

Demo 里有 [AVOSCloud setApplication],但Demo的 link libraries 没有依赖 AVOSCloud.framework,是 feedback 库中依赖了 AVOSCloud.framework。

之后将AVOSCloud.framework 加入 Demo 的 link libraries 后,又会导致运行的时候有时 用的是 Demo的AVOSCloud.framework,有时用的是 feedback库中 AVOSCloud.framework ,产生一个奇怪的问题,[AVOSCloud setApplication:clientKey] 调用后,http请求的时候 [AVOSCloud getApplicationId] 为空。

这时从 Demo 的link libraries 删除了 AVOSCloud.framework 之后,又一切正常。

先记录一下,稍后调查一下。

静态库不支持 arm64

静态库不支持 arm64, 在编译后会报错!
这个如何解决呢? 在线等.........

检查发现:
lipo -info /Users/dongeyoung/Library/Developer/Xcode/DerivedData/LeanCloudFeedback-ajouwqtvjpvlknerqfoiqejnzbld/Build/Products/Debug-iphoneos/libPods-LeanCloudFeedback.a
input file /Users/dongeyoung/Library/Developer/Xcode/DerivedData/LeanCloudFeedback-ajouwqtvjpvlknerqfoiqejnzbld/Build/Products/Debug-iphoneos/libPods-LeanCloudFeedback.a is not a fat file
Non-fat file: /Users/dongeyoung/Library/Developer/Xcode/DerivedData/LeanCloudFeedback-ajouwqtvjpvlknerqfoiqejnzbld/Build/Products/Debug-iphoneos/libPods-LeanCloudFeedback.a is architecture: armv7

编译以后:
file was built for archive which is not the architecture being linked (arm64): /Users/dongeyoung/Documents/Life Schedule/Life Schedule/LeanCloudFeedback.framework/LeanCloudFeedback
Undefined symbols for architecture arm64:
"OBJC_CLASS$_LCUserFeedbackViewController", referenced from:
type metadata accessor for __ObjC.LCUserFeedbackViewController in SettingTableViewController.o
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Type metadata accessor for __ObjC.LCUserFeedbackViewController in SettingTableViewController.o
Symbol(s) not found for architecture arm64

集成到现有 NavigationController 返回按钮无响应

使用以下代码集成到项目中已有的导航栏控制器上会出现反馈页返回按钮点击无响应问题

LCUserFeedbackViewController *feedbackViewController = [[LCUserFeedbackViewController alloc] init];
[self.navigationController pushViewController:feedbackViewController animated:YES];

在 React Native 如何使用呢?

身边很多朋友在用 RN,现在 parse 关了,都在观望用哪家的服务,不知道 leancloud 对 RN 的支持如何,比如这个组件,能在 RN 中用么,如何用?

编译不通过

LCUserFeedbackThread 编译不通过

fetchFeedbackRepliesInBackgroundWithBlock ->

AVFile *attachmentFile = [AVFile fileWithURL:reply.attachment];
                    NSError *error;
                    NSData *data;
                    data = [attachmentFile getData:&error];
                    if (error) {
                        FLog(@"attachment getData error");
                    } else {
                        reply.attachmentImage = [UIImage imageWithData:data];
                    }

提示错误:

No known class method for selector 'fileWithURL:'

No visible @interface for 'AVFile' declares the selector 'getData:'

Podfile:

 pod 'AVOSCloud'
 pod 'AVOSCloudIM'
 pod 'LeanCloudFeedback'

iOS7下闪退

UIImage *closeButtonImage = [UIImage imageNamed:@"back" inBundle:[NSBundle bundleForClass:[self class]] compatibleWithTraitCollection:nil];

+[UIImage imageNamed:inBundle:compatibleWithTraitCollection:]: unrecognized selector sent to class 0x109c59120

使用 CocoaPods 安装时提示 The 'Pods' target has transitive dependencies that include static binaries

[!] The 'Pods' target has transitive dependencies that include static binaries: (/path/to/project/Pods/AVOSCloud/libAVOSCloud.a)
    pod 'Appirater'
    pod 'hpple', :git => 'https://github.com/topfunky/hpple.git', :commit => '26554fa388'
#   pod 'pop', '~> 1.0.7'
    pod 'RNFrostedSidebar', '~> 0.2'
    pod 'HMSegmentedControl', '~> 1.4'
#   pod 'YTKKeyValueStore', '~> 0.1.2'
    pod 'KVNProgress', '~> 2.1'
    pod 'SDWebImage'
    pod 'TTTAttributedLabel'
    pod 'IQKeyboardManager', '~> 3.2.1'
    pod 'SimpleKeychain'
    pod 'Alamofire'
    pod 'SwiftyJSON', :git => 'https://github.com/SwiftyJSON/SwiftyJSON.git', :branch => 'xcode7'
    pod 'MJRefresh', '~> 2.4.7'
    pod 'TUSafariActivity', '~> 1.0'
    pod 'RETableViewManager'
    pod 'JTSImageViewController'
#    pod 'SlackTextViewController'
    pod 'KINWebBrowser'
    pod 'LNNotificationsUI', :git => "https://github.com/LeoNatan/LNNotificationsUI.git"
    pod 'FDFullscreenPopGesture', '~> 1.1'
    pod 'LeanCloudFeedback''

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.