LPLjubljanaCarParksFunctions iOS Library


LPLjubljanaCarParksFunctions is an iOS library that provides easy access to car parks in Ljubljana.

http://www.lpt.si/parkirisca

GitHub Download: https://github.com/luka1995/LPLjubljanaCarParksFunctions

2014-03-20 18.38.38

Requirements

  • Xcode 5.0 or later
  • iOS 7.0 or later
  • Cocoapods

Usage

If you’d like to include this component as a pod using CocoaPods, just add the following line to your Podfile:

pod "LPLjubljanaCarParksFunctions"

ARC

LPLjubljanaCarParksFunctions uses ARC (Automatic Reference Counting).

If you are using LPLjubljanaCarParksFunctions in your non-arc project, you will need to set a -fobjc-arccompiler flag on all of the LPLjubljanaCarParksFunctions source files.

To set a compiler flag in Xcode, go to your active target and select the “Build Phases” tab. Now select all LPLjubljanaCarParksFunctions source files, press Enter, insert -fobjc-arc and then “Done” to disable ARC for LPLjubljanaCarParksFunctions.

Uses Frameworks – Libraries

  • UIKit.framework
  • Foundation.framework

LPLjubljanaCarParksFunctions uses AFNetworking library for networking.https://github.com/AFNetworking/AFNetworking

Delegate methods

- (void)ljubljanaCarParksFunctionsWillLoadParks:(LPLjubljanaCarParksFunctions *)ljubljanaCarParksFunctions;
- (void)ljubljanaCarParksFunctions:(LPLjubljanaCarParksFunctions *)ljubljanaCarParksFunctions didLoadParks:(NSMutableArray *)parksList parkingMachines:(NSMutableArray *)parkingMachinesList;
- (void)ljubljanaCarParksFunctions:(LPLjubljanaCarParksFunctions *)ljubljanaCarParksFunctions errorLoadingCarParks:(NSError *)error;

- (void)ljubljanaCarParksFunctions:(LPLjubljanaCarParksFunctions *)ljubljanaCarParksFunctions didLoadOccupancyToCarParks:(NSMutableArray *)parksList;
- (void)ljubljanaCarParksFunctions:(LPLjubljanaCarParksFunctions *)ljubljanaCarParksFunctions errorLoadingOccupancyToCarParks:(NSError *)error;
#pragma mark - LPLjubljanaCarParksFunctions Delegate

- (void)ljubljanaCarParksFunctionsWillLoadParks:(LPLjubljanaCarParksFunctions *)ljubljanaCarParksFunctions
{
    NSLog(@"ljubljanaCarParksFunctions - WillLoadParks");
}

- (void)ljubljanaCarParksFunctions:(LPLjubljanaCarParksFunctions *)ljubljanaCarParksFunctions didLoadParks:(NSMutableArray *)parksList parkingMachines:(NSMutableArray *)parkingMachinesList
{
    NSLog(@"%d parks, %d parking machines", parksList.count, parkingMachinesList.count);
}

- (void)ljubljanaCarParksFunctions:(LPLjubljanaCarParksFunctions *)ljubljanaCarParksFunctions errorLoadingCarParks:(NSError *)error
{
    NSLog(@"ljubljanaCarParksFunctions - errorLoadingCarParks: %@",error);
}

- (void)ljubljanaCarParksFunctions:(LPLjubljanaCarParksFunctions *)ljubljanaCarParksFunctions didLoadOccupancyToCarParks:(NSMutableArray *)parksList
{
    NSLog(@"ljubljanaCarParksFunctions - didLoadOccupancyToCarParks");
}

- (void)ljubljanaCarParksFunctions:(LPLjubljanaCarParksFunctions *)ljubljanaCarParksFunctions errorLoadingOccupancyToCarParks:(NSError *)error
{
    NSLog(@"ljubljanaCarParksFunctions - errorLoadingOccupancyToCarParks: %@", error);
}

License

This code is distributed under the terms and conditions of the MIT license.

Change log

A brief summary of each LPLjubljanaCarParksFunctions release can be found on the wiki.

Leave a Comment

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>