Giter Club home page Giter Club logo

Comments (6)

Spokane-Dude avatar Spokane-Dude commented on July 25, 2024

I have the same problem, only I can't get a tap to transfer to a UIView… the UITableView is displayed correctly in the UIPopover.

On May 16, 2013, at 3:31 PM, Jhon Jaiver López [email protected] wrote:

Hi,

I'm having a problem when adding a UITableView to the popoverView. The TableView is showing properly, but the first tap on it is lost (the didDeselectRowAtIndexPath method is not being called).

After the first tap on the table, it works as is intended (the didDeselectRowAtIndexPath method is called normally).

This is the code I'm using:

self.myTable = [[UITableView alloc] initWithFrame:CGRectMake(0, 0, 240, 120)];
self.myTable.delegate = self;
self.myTable.dataSource = self;

self.pv = [PopoverView showPopoverAtPoint:CGPointMake(40, 40)
inView:self.view
withContentView:self.myTable
delegate:self];
I tried adding the didDeselectRowAtIndexPath method on the example included and it presents the same behaviour.

I'm also using the component to show a custom calendar view and it works like a charm.


Reply to this email directly or view it on GitHub.

from popoverview.

ocrickard avatar ocrickard commented on July 25, 2024

I bet you found a tap gesture recognizer! I'll see if I can refactor this weekend.

from popoverview.

jaiversin avatar jaiversin commented on July 25, 2024

I'm sorry... your component works perfectly (the autocomplete function of Xcode just trolled me)

I was using

didDeselectRowAtIndexPath:(NSIndexPath *)indexPath

instead of

didSelectRowAtIndexPath:(NSIndexPath *)indexPath

That's the why for the "strange" behaviour.

Again, forgive this enormous mistake!

from popoverview.

ocrickard avatar ocrickard commented on July 25, 2024

Hey, no problem! I think my touch handling for this component wasn't great, so seemed totally plausible to me. One of these days I'll do a rewrite...

from popoverview.

ocrickard avatar ocrickard commented on July 25, 2024

@Spokane-Dude Want to open an issue on this? Any ideas of what's causing it?

from popoverview.

Spokane-Dude avatar Spokane-Dude commented on July 25, 2024

Not right now… let me play with it for a bit… but thanks for offering… :D

On May 16, 2013, at 5:49 PM, Oliver Clark Rickard [email protected] wrote:

@Spokane-Dude Want to open an issue on this? Any ideas of what's causing it?


Reply to this email directly or view it on GitHub.

from popoverview.

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.