Archive for the ‘Uncategorized’ Category.
May 17, 2010, 8:59 pm
For one of my projects on the iPad I wanted to popup a detail window out of an existing image view, using some animation while popping up. CoreAnimation was the way to go, but I was facing difficulties to:
a) find out how to do it and
b) get it working.
The animation should combine movement (from the location of the clicked image to the location where the popup is shown), scaling (from the image size to the popup size) and rotation (for a nice effect). Google searches delivered bits and pieces, the best sample I found was MFFlip from Mike Lee. This didn’t include scaling and movement like I wanted it, so I added this and then packed it up nicely into a single class ViewFlipper with a single factory method that takes 2 views as parameters and does all the calculations and animation. The ViewFlipper class can be included without further dependencies into any project, except that you need to include the QuartzCore framework.
I’ve created a little sample iPad program around it that you can download here. I’ve put some documentation in the code that describes the what goes on inside. I hope this is useful for others who are struggling with this too.
Note: initially I kept having trouble with all of the examples I found, it turned out this was caused by the fact that I had one view with 3 subviews: a UITableView covering the entire view, the imageView and popupView (which were shown above the UITableView). I managed to solve this by moving the imageView and popupView onto a view of its own. I gave this extra view a transparent background, so that the underlying UITableView was still visible. This extra view also has the advantage that you can catch touch events on it which you can use to popdown the popup.
January 17, 2010, 9:31 pm
Today version 1.1.2 of RitMeester has been released. In the Netherlands, when you have a lease-car the tax authorities will add up to 25% of the car value to your gross salary. If you use your car for personal travel less than 500 kilometers per year, you can get a ‘Verklaring geen privé gebruik’ from the tax authorities. Condition is that you maintain detail records of all car travel. Ritmeester is the first Mac based program that helps you to keep a detailed and consistent administration, with minimum effort.
In dutch, deze versie bevat de volgende wijzigingen en probleem oplossingen:
- Mogelijkheid om te filteren op rit type (Privé, Zakelijk, Beide).
- Totalen van zakelijke en privé kilometers voor de gefilterde ritten.
- Automatisch zoeken naar updates.
- Initiële synchronisatie met iPhone werkte soms niet, dit probleem is opgelost.
- Synchronisatie van speciale karakters zoals ë werkte niet goed, dit probleem is opgelost. Hiervoor verschijnt ook nog een update van de iPhone applicatie.
- Kilometer totalen werden niet correct getoond na het toevoegen van een rit, dit probleem is opgelost.
November 7, 2009, 2:55 pm
Version 1.0.1 of the mobile client for Ritmeester is available as a free download from the AppStore. This version solves a compatibility problem with iPhone OS 3.1 and higher, where the keyboard would disappear after each typed character.
August 30, 2009, 1:51 pm
Today version 1.1 of Ritmeester has been released. In the Netherlands, when you have a lease-car the tax authorities will add up to 25% of the car value to your gross salary. If you use your car for personal travel less than 500 kilometers per year, you can get a ‘Verklaring geen privé gebruik’ from the tax authorities. Condition is that you maintain detail records of all car travel. RitMeester is the first Mac based program that helps you to keep a detailed and consistent administration, with minimum effort. Further description is in dutch.
Deze versie bereidt Ritmeester voor op synchronisatie met de iPhone client, die binnenkort als gratis download via de AppStore beschikbaar zal zijn. Hiermee kan je onderweg je ritten bijhouden, om ze vervolgens met een druk op de knop draadloos te synchroniseren met Ritmeester op de Mac. Daarmee behoren briefjes om de kilometerstanden bij te houden en vergeten standen tot het verleden.
Daarnaast biedt deze versie een tweetal kleine uitbreidingen die het invoeren van gegevens nog eenvoudiger maken:
- Via de nieuwe knop ‘terugrit’ kan je nog een terugrit aanmaken voor de laatste rit, waarbij alle relevante info al is ingevuld.
- De invoervelden voor adres, plaats en route bieden nu autocompletion op basis van eerdere gegevens. Wanneer er bv eerder ritten naar Amsterdam en Amstelveen zijn ingevoerd, verschijnt na het intypen van ‘Am’ een lijstje met deze twee plaatsnamen waaruit dan gekozen kan worden.
De download van versie 1.1 is per direct beschikbaar, zoals gebruikelijk is deze upgrade gratis voor gebruikers die Ritmeester al aangeschaft hebben.