Comments (9)
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.
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.
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.
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.
Yes, buttons always have the same width (the size of the larger one) if the text differs.
from mgswipetablecell.
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.
Hi robjkc,
I have fixed the hidden views issue, try with the latest version.
from mgswipetablecell.
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.
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)
- Crashes at MGSwipeTableCell.m line 926 -[MGSwipeTableCell hideSwipeOverlayIfNeeded] HOT 7
- Round Corner HOT 1
- Gesture conflicts with 2-finger pan multi selection gesture
- SPM support HOT 1
- iPhone X and on: When table view is on split view controller, right side button are cut
- MGSwipeTableCellDelegate not working
- how to disable swipe vertical scrolling
- Multiple selections in ios13 UI not refresh
- Does anyone occur white cells by using 1.6.11? HOT 6
- Swipe not working with Magic Trackpad 2
- Problem when using shadow HOT 1
- Hang on swipe in iOS 14.4 HOT 6
- Add double confirm feature like wechat delete conversation check
- Unable to add MGSwipeTableCell via Swift Package HOT 2
- occasionally i see crash in my app.
- Tag 1.6.11 does not include Swift Package Manager support. HOT 1
- Visual glitch/flash on refreshContentView() while cell is swiped open
- still looks good
- .
- Privacy Manifest
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 mgswipetablecell.