Code Monkey home page Code Monkey logo

Comments (9)

ctd-mh3 avatar ctd-mh3 commented on August 18, 2024

It is working for me in iOS 8 beta. Are you setting the value in your view controller's viewDidLoad or similar method?

[self.tableViewCell setValue:[@"Something"]];

from pickertableviewcell.

andrewjlow avatar andrewjlow commented on August 18, 2024

Thank you for the quick reply back.

I am using the view controller's viewDidLoad to setup the cells. Initially, what I did was:

self.aCell.values = [self aVariableWithAnArray];
self.aCell.value = @"aString";

I also used the set methods setValues: and setValue: as well but to no avail...

One other thing I am using is CoreData to persist the order made. It shouldn't affect the way the order is displayed...

The delegates for the SimplePickerInputTableViewCell are all correct...

I should also add that this is only happening in beta 6. Beta 5 was ok...

Anyway, thank you for checking. I will do some additional investigation to see what may be the problem.

from pickertableviewcell.

ctd-mh3 avatar ctd-mh3 commented on August 18, 2024

I am using xcode beta 6 and the latest iOS 8 with no issues. Just checked again.

from pickertableviewcell.

andrewjlow avatar andrewjlow commented on August 18, 2024

No problem, I will see what I may have done wrong and report back!

Thank you very much for your help!

from pickertableviewcell.

marckaraujo avatar marckaraujo commented on August 18, 2024

Same problem here.

from pickertableviewcell.

qzc77 avatar qzc77 commented on August 18, 2024

Same problem here.

from pickertableviewcell.

andrewjlow avatar andrewjlow commented on August 18, 2024

OK, I finally found out what I need to do. For some reason, the fields just does not load the value that I have preset. I did a bit of searching and I found this link:

http://stackoverflow.com/questions/4448321/is-it-possible-to-refresh-a-single-uitableviewcell-in-a-uitableview

So what I did was the following:

-(void) viewWillAppear:(BOOL)animated {

NSIndexPath *indexPath = [NSIndexPath indexPathForRow: 1 inSection: 0];

[self.tableView reloadRowsAtIndexPaths: [NSArray arrayWithObjects: indexPath, nil] withRowAnimation: UITableViewRowAnimationNone];

}

Once I've done this, my picker cells now can display the value I have set.

Let me know if that works for you.

from pickertableviewcell.

marckaraujo avatar marckaraujo commented on August 18, 2024

I just remove this library and I am now using one with iOS 8 ready.

from pickertableviewcell.

andrewjlow avatar andrewjlow commented on August 18, 2024

@marckaraujo I'll be interested to know what the library you used. Can you send me a private message?

Thank you.

from pickertableviewcell.

Related Issues (15)

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.