Giter Club home page Giter Club logo

Comments (10)

3lvis avatar 3lvis commented on July 17, 2024

Hi Tomas,

Thanks for reporting this issue! I'll have a look at it. 😄

from datasource.

3lvis avatar 3lvis commented on July 17, 2024

@syky27 Hi!

That's a UITableViewDelegate method, DATASource only takes care of the UITableViewDataSource methods.

https://developer.apple.com/library/ios/documentation/UIKit/Reference/UITableViewDelegate_Protocol/#//apple_ref/occ/intfm/UITableViewDelegate/tableView:editActionsForRowAtIndexPath:

Best

from datasource.

3lvis avatar 3lvis commented on July 17, 2024

@syky27 There you go. I added an example on how to do what you asked.

https://github.com/3lvis/DATASource/blob/master/DATASourceDelegateTableSwift/ViewController.swift

You need to implement this method in the DATASourceDelegate

func dataSource(dataSource: DATASource, tableView: UITableView, canEditRowAtIndexPath indexPath: NSIndexPath) -> Bool {
    return true
}

from datasource.

syky27 avatar syky27 commented on July 17, 2024

Hi! So I tried to download your example, but after running it on my iPhone it crashes on

dyld`dyld_fatal_error:
->  0x12002d088 <+0>: brk    #0x3

Is it happening to you also?

from datasource.

3lvis avatar 3lvis commented on July 17, 2024

@syky27 wow, this is really weird. Might be something related to your Xcode installation.

from datasource.

syky27 avatar syky27 commented on July 17, 2024

@3lvis Then I suppose it works for you right? I was trying to run your example because I still cannot get the swiping to work...

I will try to compile my app on my Mac Build Server, Then I will let you know...

Thanks

from datasource.

3lvis avatar 3lvis commented on July 17, 2024

edit

from datasource.

3lvis avatar 3lvis commented on July 17, 2024

edit2

from datasource.

syky27 avatar syky27 commented on July 17, 2024

Hi! So I reinstalled Xcode, and it started to work... One just simply needs to hate how dev. tools from Apple are unstable nowadays....

Thanks for help tho.

from datasource.

3lvis avatar 3lvis commented on July 17, 2024

@syky27 😊

from datasource.

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.