Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/petrosdemetrakopoulos/psdhudspeed
https://github.com/petrosdemetrakopoulos/psdhudspeed
Last synced: 9 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/petrosdemetrakopoulos/psdhudspeed
- Owner: petrosDemetrakopoulos
- Created: 2012-10-21T16:30:45.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2012-10-21T16:50:28.000Z (over 12 years ago)
- Last Synced: 2023-03-30T20:56:40.436Z (almost 2 years ago)
- Language: Objective-C
- Size: 141 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
#What is PSDHUDSpeed#
PSDHUDSpeed, is a control for iOS that displays the user's speed mirrored in the screens so that when the user puts his iPhone on the console of his car,the speed is displayed in the windshield (right not mirrored).
#How to use PSDHUDSpeed#
Using PSDHUDSpeed is really easy!!
First of all, you must import PSDHUDSpeed at the .h file of your class. You can do it by adding this line before the @interface line.``` objc
#import "PSDHUDSpeed.h"
```
In order to initialize PSDHUDSpeed, you must add the following line.
```objc
PSDHUDSpeed *myHUDSpeed = [[PSDHUDSpeed alloc]initWithSpeedColor:textColorOfTheSpeed AndFontSize:fontSizeOfSpeed AndSpeedUnit:aSpeedUnit];
```
SpeedColor parameter is the text color of the label that displays the speed value. It gets UIColor values.
AndFontSize parameter is the font size of the label that displays the speed value. It gets float values.
AndSpeedUnit parameter is the unit of speed in which you want the speed to be displayed. It can only get the following values:1. *MetersPerSecond*: for meters/second speed unit.
2. *KilometersPerHour*: for Km/hour speed unit.
3. *Knots*: for Knots speed unit.
4. *MilesPerHour*: for Mi/hour speed unit.After ypu complete this step, you can present PSDHUDSpeed as another view controller.
#Properties#
The only property of PSDHUDSpeed, is the *BackButton* property. It gets UIButton values#License#
*Copyright (c) 2012 Petros Demetrakopoulos*Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.