Coder Social home page Coder Social logo

ambubbletableview's Introduction

๐Ÿ‘‹ Hey

I'm a software engineer, I mainly work with Swift and Typescript + React. Once I close my laptop I get into my workshop for some hand tools woodworking ๐Ÿ”จ

ambubbletableview's People

Contributors

alioguzhan avatar andreamazz avatar bryant1410 avatar mikerudoy avatar readmecritic avatar rogymd avatar vutrongtung 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  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

ambubbletableview's Issues

iOS7.1

Hey I am using your controller and everything seems great except for a small issue. It seems that when I send a multiple line text and press send, the scrolling doesn't work properly and cuts off my latest sent message. Could you look into this? Thanks!

All chat items scroll up when the keyboard is shown

Suppose the table is scrolled down to the bottom.
screen shot 2013-09-16 at 6 40 19 pm

Open the keyboard the chat messages disappear and you have to scroll down to see them.
screen shot 2013-09-16 at 6 40 33 pm

But when I start typing a new chat messages the old messages appears again
screen shot 2013-09-16 at 6 40 49 pm

Make AMBubbleTableView work on iPad

I really like to use your library! But I tried to use the TableView on the iPad but the bubbles also appear on the right site of the cell. If you include "[self.tableView reloadData]" inside "scrollToBottomAnimated", all bubbles will be set to the right position (completely left or right). ScrollToBottomAnimated will also be called when I try to refresh the tableview after inserting new data, but they only will be layouted right when the keyboard pops out. Is there a way to make it work?

Send button style change

Hi all, I need to change Send button...

there are only 2 options
AMOptionsImageButton
AMOptionsImageButtonHighlight

but I need chande all, I want insert custom Image, without text.

Is it possible?

Thanks

Assert for text and stringDate not nil in AMBubbleTableViewController

In - (UITableViewCell*)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath of AMBubbleTableViewController should be a check for text and stringDate is not equal to nil. Something like an assert. At the moment the error message is very cryptic and I've had to spend a lot of time to find the issue (had no idea, that my data source had an issue and the error message doesn't say anything of nil).

Problem with tabbar app

When hiding the keyboard inside a tabbar controller, the bottom part gets screwed.
The "send" bar disappears along with the last message.

Crashes in Release builds

It crashes on line 39: [self.bubbleAccessory setOptions:options]; in AMBubbleTableCell.m because of the custom setter for "options" in both AMBubbleAccessoryView and AMBubbleFlatAccessoryView.

If you comment out the custom setter and let Xcode synthesize it, it works fine in Release builds too.

To reproduce this:

  1. Open up the example project
  2. Click on "BubbleTableDemo" next to the "Stop" button in Xcode on the top bar
  3. Select "Edit scheme" and change "Build configuration" to "Release"
  4. Run the project
  5. Crash :)

Crash if usernameForRowAtIndexPath: not implemented

The dataSource protocol says that it's optional but the code that calculates the height of a row uses it without checking if it's there.

This patch fixes the problem:

--- a/vendor/AMBubbleTableView/AMBubbleTableViewController.m
+++ b/vendor/AMBubbleTableView/AMBubbleTableViewController.m
@@ -233,21 +233,24 @@
         }];
    }

    return cell;
 }

 - (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath
 {
    AMBubbleCellType type = [self.dataSource cellTypeForRowAtIndexPath:indexPath];
    NSString* text = [self.dataSource textForRowAtIndexPath:indexPath];
-   NSString* username = [self.dataSource usernameForRowAtIndexPath:indexPath];
+    NSString* username = @"";
+    if ([self.dataSource respondsToSelector:@selector(usernameForRowAtIndexPath:)]) {
+        username = [self.dataSource usernameForRowAtIndexPath:indexPath];
+    }

    if (type == AMBubbleCellTimestamp) {
        return [self.options[AMOptionsTimestampHeight] floatValue];
    }

     // Set MessageCell height.
     CGSize size = [text sizeWithFont:self.options[AMOptionsBubbleTextFont]
                   constrainedToSize:CGSizeMake(kMessageTextWidth, CGFLOAT_MAX)
                       lineBreakMode:NSLineBreakByWordWrapping];

iOS7 (when compiled with XCode 5) - 2 issues

  1. The textView grows at each letter typed and not only at pressing the return key
  2. The animation of the textView at keyboard reveal/dismiss is very strage: it jumps 2 times before sitting at its frame.

Insets are not returning to normal in ios 7 3.5'' and 4''

After the keyboard comes down, the insets of the scroll view are not returning to normal and the first message keeps hidden.

I've commented the following line in AMBubbleTableViewController and the problem was solved:

//self.tableView.contentInset = insets;
//self.tableView.scrollIndicatorInsets = insets;

Not sure what the consequences are thought.

Problem chat block anchor after rotation iPhone

screenshot sample
Hi, i've tried your library and i've found a little problem in your demo. Once application run, staying to the top of the tableview, i rotate the iPhone Simulator in all possible orientation, so, returning in portrait mode and scrolling to the bottom, the last sent message ( on the right side ) is anchored to the left side of screen, under last receiver user message. Scrolling the tableview, hiding that message and showing again it, it return on correct right side of screen. i've tried to user iPhone 6.1 Simulator.

ios7 issue

I installed demo project on my iphone4 with ios7 version but the message is not displayed all in the block... Each block have vertical scroller.

The problem is present when I use xcode 4.* and run on ios device

Help me please :(

thanks

Portion of the table hidden when I send a message

Having the controller under a navigationcontroller, it works fine when it loads, but, when I write a message and send it (the table is updated), when I scroll to the top there is a portion hidden under the navigation bar

Crash on iOS 5.0/5.1 inside AMBubbleTableCell in "initWithOptions"

I tried to run the Framework on iOS 5.0 and while building the compiler stopped inside the Method "initWithOptions:reuseIdentifier:" in the class AMBubbleTableCell.

Here is the method where it stops:
[self.bubbleAccessory setOptions:options];

I tried to change the Font that will be set through the options to systemFont but it also didn't work. It looks like it doesn't work because of the options. Maybe you have a hint.

Suggestions

First of all i want to say that you did great job on this!
I have to suggestions to make:
a) It would be great if there was some kind of "Pull-to-refresh" function.
b) Image attachments

p.s. Is there a way to show the full date of the text written instead of the time?

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.