Git Product home page Git Product logo

Comments (9)

MortimerGoro avatar MortimerGoro commented on July 25, 2024

There is a better way to add padding than adding spaces to the button titles. After creating a MGSwipeButton you can change it's frame and for example add 10 points to its frame size. You can also toy with UIEdeContentInsets because MGSwipeButton is a UIButton subclass. In the last commit I have added an optional width parameter to MGSwipeButton static constructor to make this easier.

from mgswipetablecell.

robjkc avatar robjkc commented on July 25, 2024

Thanks for the info! Any way to automatically have MGSwipeTableCell handle this? I'm a little worried about scaling issues with different devices. Would rather have MGSwipeTableCell default with a little more padding.

from mgswipetablecell.

MortimerGoro avatar MortimerGoro commented on July 25, 2024

On second thought I have changed the width parameter to a padding. I agree that padding is better to handle scaling among many devices. The padding parameter is optional, the default value is 10 points. If you need more customizable paddings you can toy with contentEdgeInsets, titleEdgeInsets and imageEdgeInsets properties and call [button sizeToFit].

Let me know if it works for you now ;)

from mgswipetablecell.

robjkc avatar robjkc commented on July 25, 2024

Thanks! I'll check it out tonight. While you're looking at it, wanted to ask if you happen to size the buttons to the same width if the text differs? It seems like you were, which is a nice feature.

from mgswipetablecell.

MortimerGoro avatar MortimerGoro commented on July 25, 2024

Yes, buttons always have the same width (the size of the larger one) if the text differs.

from mgswipetablecell.

robjkc avatar robjkc commented on July 25, 2024

The buttons look good. One thing I did notice was the after swiping on my extended UITableViewCell all the hidden views on the cell suddenly became visible. I didn't see this in the release from last week. I'll try to create a new issue with a picture.

On Saturday, September 27, 2014 1:24 PM, Imanol Fernandez [email protected] wrote:

Closed #14.

Reply to this email directly or view it on GitHub.

from mgswipetablecell.

MortimerGoro avatar MortimerGoro commented on July 25, 2024

Hi robjkc,

I have fixed the hidden views issue, try with the latest version.

from mgswipetablecell.

robjkc avatar robjkc commented on July 25, 2024

Tried it out today and it looks great. Only one last small issue. The default UITableView animation effect when a row is deleted is that the row collapses. For some reason the MGSwipeTableCell doesn't have the same animation effect. Is there a way you can duplicate this?

On Sunday, September 28, 2014 7:21 AM, Imanol Fernandez [email protected] wrote:

Hi robjkc,
I have fixed the hidden views issue, try with the latest version.

Reply to this email directly or view it on GitHub.

from mgswipetablecell.

jignesh133 avatar jignesh133 commented on July 25, 2024

screen shot 2017-11-03 at 12 10 13 pm

Hi. @MortimerGoro

i have to make the cell like attached the image add some space before the Swipe Button. how can i achive like this.

Thanks in advance,

from mgswipetablecell.

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.