• Stars
    star
    143
  • Rank 257,007 (Top 6 %)
  • Language
    Objective-C
  • License
    MIT License
  • Created over 10 years ago
  • Updated over 10 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

An easy image upload visualiser for Objective-C

TNSexyImageUploadProgress

An image upload progress component for Objective-C

TNSexyImageUploadProgress

Installation

Manual

  • Just drag the files in the src folder to your project.
  • Import the class

CocoaPods

  • Add pod 'TNSexyImageUploadProgress' to your Podfile
  • Done

How to use?

  • Import the TNSexyImageUploadProgress.h file.
  • Create an instance of the class
  • Call the show method
  • Update the progress by setting the progress property (when you are working with different threads, you should do this on the main thread!)

For example:

dispatch_async(dispatch_get_main_queue(), ^{
    self.imageUploadProgress.progress = progress.fractionCompleted;
});
  • Done!

For example

self.imageUploadProgress = [[TNSexyImageUploadProgress alloc] init];
[self.imageUploadProgress show];

Customise the component

If you want you can customise how the component looks. You can set the following properties:

Property What does it do
progress Set how far the circle has to be drawn (value between 0.0 and 1.0)
radius Set the radius for the circular image mask
progressBorderThickness Set the thickness of the border
trackColor Set the color for the track
progressColor Set the color for the progress
showOverlay Set if you want the component to show an overlay

For example

self.imageUploadProgress = [[TNSexyImageUploadProgress alloc] init];
self.imageUploadProgress.radius = 100;
self.imageUploadProgress.progressBorderThickness = -10;
self.imageUploadProgress.trackColor = [UIColor blackColor];
self.imageUploadProgress.progressColor = [UIColor whiteColor];
self.imageUploadProgress.imageToUpload = selectedImage;
[self.imageUploadProgress show];

Video

You can check out a video of the component at http://cl.ly/VE1F/TNSexyImageUpload.mov

Demo

There is a demo project added to this repository, so you can see how it works. In the folder 'webservice', you can find a PHP script to upload pictures. Just put it in your document directory and set the correct path in MainViewController.

License

TNSexyImageUploadProgress published under the MIT license:

Copyright (C) 2014, Frederik Jacques

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.

More Repositories

1

sketch-favicon-exporter-template

Easily generate favicons for today's devices with Sketch.
219
star
2

TNCheckBoxGroup

Customisable checkbox class for Objective-C
Objective-C
183
star
3

TNRadioButtonGroup

Create easy radio button groups in objective-c
Objective-C
143
star
4

TNImageSliderViewController

A Swift image slider component based on UICollectionView
Swift
90
star
5

native-ios-and-unity3d

Objective-C
56
star
6

DynamicColladaSceneKitPrototype

You can find more info about this prototype at http://www.the-nerd.be/2014/11/07/dynamically-load-collada-files-in-scenekit-at-runtime/
Objective-C
44
star
7

3d-touch-peek-and-pop-tutorial

This tutorial is part of a blog post
Swift
31
star
8

touchid-swift-tutorial

The project associated to the blog post on how to integrate TouchID.
Swift
26
star
9

objc-login-system

An easy way to create a login system in obj-c
Objective-C
22
star
10

TNSwiftyCheckboxGroup

A Swift component based on UICollectionView to create checkbox groups with various styles.
Swift
21
star
11

quick-actions-3d-touch-tutorial

Swift
19
star
12

TNColorScrollViewController

A view controller for Objective-C which creates a scrollview with view with different background colors.
Objective-C
15
star
13

TNInfoBubble

Prisma-style info bubbles for your iOS application
Swift
15
star
14

countrykit

Swift library with all continents, regions, subregions & countries of the world according to Standard Country or Area Codes for Statistical Use (UN M94).
Swift
12
star
15

vatnumberkit

VatNumberKit - A Swift VAT validation library for iOS & macOS
Swift
11
star
16

FaceRecognitionTrainer

iPhone prototype app for Face.com
Objective-C
9
star
17

TNGradientPickerSlider

TNGradientPickerSlider is a ready-to-use AppKit component which lets your users select multiple colors to build a gradient for your macOS application.
Swift
9
star
18

ios-pongwars

A Swift implementation of Pong Wars with SpriteKit.
Swift
6
star
19

messaging-objc-unity

Objective-C++
5
star
20

ZDepthAnimation

Mimic the National Geographic - National Parcs iPad app animation
Objective-C
4
star
21

uiscrollview-extensions

For the lazy ones who hate to divide offset.x by bounds.width
Shell
4
star
22

LightWeightCoreDataMigration

How to do a leightweight core data migration
Objective-C
2
star
23

UIFont-Enumerate

Swift extension to enumerate all available font families with their font names on the device
Ruby
2
star
24

UIColor-Hex-Swift

Create UIColor objects in Swift from a CSS color string or a hexadecimal integer.
Shell
1
star
25

cocoaheads-rxswift-primer

The demo project for my CocoaHeads presentation on November 22, 2017.
Swift
1
star
26

DictaPoint

A prototype mac app to grade students via voice recognition
C
1
star