how i can have one date picker in iOS and Android?

Getting into LiveCode for iOS? Ask your questions here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

aebki
Posts: 126
Joined: Tue Jan 06, 2015 5:48 pm

Re: how i can have one date picker in iOS and Android?

Post by aebki » Tue Feb 03, 2015 1:39 pm

Hi,

Any help for the ".1" in the picker???

Or at least how i can 'round' or 'trunc' this number in the 'mobile'???

Regards.

aebki
Posts: 126
Joined: Tue Jan 06, 2015 5:48 pm

Re: how i can have one date picker in iOS and Android?

Post by aebki » Wed Feb 04, 2015 12:53 pm

Hi,

I am wondering if this is one error of LC 7...:-(

I am not sure if it is mine as i am only putting the value in on field...

But even if it is one error of LC7, it should not work the trunc or round???

Regards.

Vanceone
Posts: 37
Joined: Sat Dec 15, 2012 7:27 pm

Re: how i can have one date picker in iOS and Android?

Post by Vanceone » Fri Feb 06, 2015 5:49 am

There is another approach: roll your own spinner. There are at least three live code libraries I have seen to do this for you: WheeLib (in the run rev store), which is a commercial product and then Bernd built two of them. WheeLib is, frankly, not working on LiveCode 7. Don't bother with it. Bernd's has one aimed at iOS 6 and earlier, and one aimed at iOS 7 and later. One is licensed under the GPL, so cannot be used in commercial products without his permission (I think its the iOS 7 one). I've attached them to this post in zip format. I myself got them from this forum somewhere, so I'm pretty sure it's ok.

What I would do is investigate them and then build your own "date picker" from them. It's just a custom control, so doesn't tie into iOS at all, and you don't have to ask on an alert or anything. You can PM bernd or something if you need help; but bernd is a fantastic coder, so I know these work. Built one and it looks just like the system versions.

Good luck!
Attachments
iOS Spinners.zip
(25.43 KiB) Downloaded 151 times

aebki
Posts: 126
Joined: Tue Jan 06, 2015 5:48 pm

Re: how i can have one date picker in iOS and Android?

Post by aebki » Sun Feb 08, 2015 12:59 pm

Hi Vanceone,

Thanks for your answer...:-)

So, i will look at what you attached...:-)

And also thanks to Bernd to develop these two different spinners...

So i will see if i can manage to build what i need...:-)

Regards

Post Reply

Return to “iOS Deployment”