• Stars
    star
    176
  • Rank 216,987 (Top 5 %)
  • Language
    Objective-C
  • Created over 10 years ago
  • Updated over 4 years ago

Reviews

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

Repository Details

A simple XIB extension to make rounded custom buttons, without writing one line of code!

APRoundedButton Build Status

A simple XIB extension to make rounded custom buttons, without writing one line of code, using IBInspectable.

IBInspectable properties provide new access to an old feature: user-defined runtime attributes.
Currently accessible from the identity inspector, these attributes have been available since before
Interface Builder was integrated into Xcode.
They provide a powerful mechanism for configuring any key-value coded property of an instance in a NIB, XIB, or storyboard.

Apple doc: (https://developer.apple.com/library/ios/recipes/xcode_help-IB_objects_media/Chapters/CreatingaLiveViewofaCustomObject.html)

Requirements

ARC, iOS 7+, Xcode 5

How to use

Copy in your project the files:

APRoundedButton.h
APRoundedButton.m

Next, open your XIB or Storyboard, make a button. Change UIButton default class with APRoundedButton.

SS Screenshot

That's all.
Build and run.

No one line of code is needed!

MIT License

The MIT License (MIT)

(c)2015 Alberto Pasca, albertopasca.it

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

iCloud-Helper

Simple iCloud file managment. Read, write, load, list files across devices.
Objective-C
66
star
2

APGraph-Route

iOS dijkstra algorithm
Objective-C
22
star
3

ipTV

Simple IPTV streaming app for iOS / OSX
Objective-C
20
star
4

UILabel-letter-touch

detect touch on uilabel's letters
Objective-C
16
star
5

PaskySaver

Simple Mac OSx screensaver - Swift
Swift
14
star
6

Roborock-Controller

A simple implementation for controlling a Xiaomi Roborock-Vacuum via sockets API
JavaScript
12
star
7

APScroller

UILabel letter animation
Objective-C
11
star
8

Turn-Based-Web-Socket

A simple turn based "game" using nodeJS and socket.io
JavaScript
11
star
9

Unity3D-Nintentdo_Duck_Hunt

A one shot clone of NES Duck Hunt made in Unity3D
C#
5
star
10

Swift-Koan

A framework and lessons to learn Swift syntax and idioms in a logical sequence.
Swift
5
star
11

swift-volume-button

Detect Volume button pressed on iOS without showing the HUD (Swift 3+)
Swift
5
star
12

Shopping-Cart

A simple drag 'n drop shopping cart for iOS
Objective-C
3
star
13

3D-View-Rotation

Rotate an UIView using CATransformLayer and CATransform3D.
Objective-C
3
star
14

SwiftUI_Maps_Comparison

A simple project that show both GMSMapView and MKMapView example use in SwiftUI
Swift
3
star
15

Swift-macOS-CoolApp-Skeleton

Skeleton for macOS UI example - More info here: http://www.albertopasca.it/whiletrue/
Swift
3
star
16

ScreenSecuritySDK

Secure your app hiding sensitive informations, easily.
Swift
2
star
17

GPSSecurity

An SDK to check the validity of the GPS positions related to travel-time distancies.
Swift
2
star
18

Vibrations

Simple cocoapod to use all the Vibrations, Haptics easily in your iOS app.
Swift
2
star
19

Gravity

Gravity is a simple Swift Package Manager to add gravity to UI objects easily.
Swift
2
star
20

Levenshtein-Distance---Misspelling

Levenshtein distance algorithm implementation
Objective-C
2
star
21

Esempio_11_Foundation

Corso App con iOS - 11
Objective-C
1
star
22

FireworksFramework

Simple fireworks animation frameworks for iOS
1
star
23

Esempio_04_Interfacce

Corso App con iOS - 04
Objective-C
1
star
24

Esempio_15_XMLParser

Corso App con iOS - 15
Objective-C
1
star
25

Esempio_10_Accelerometro

Corso App con iOS - 10
Objective-C
1
star
26

CoreML_Sentiment_Analyzer

Analyze tweets and discover the common sentiment of the users
Swift
1
star
27

Esempio_01_Sintassi

Corso App con iOS - 01
Objective-C
1
star
28

Esempio_16_Paint

Corso App con iOS - 16
Objective-C
1
star
29

ReplayKit

Demo of ReplayKit. Record your app movie, direct from your app using Replay Kit.
Swift
1
star
30

Image-array-fade

Objective-C
1
star
31

Esempio_12_Storage

Corso App con iOS - 12
Objective-C
1
star
32

Esempio_09_GPS

Corso App con iOS - 09
Objective-C
1
star
33

Chrome-Highlither

Highlith dictionary words on Chrome pages
JavaScript
1
star
34

MetroApp

Complete sample app. Targeted for iPhone/iPad ( universal ), Apple Watch, Apple TV using Swift and Autolayout.. Made up for Coursera exam
1
star
35

Unity3D-PaskyRun

A very ugly clone of GravityGuy for iOS, maded in Unity3D using C#
C#
1
star
36

Esempio_03_XCode

Corso App con iOS - 03
Objective-C
1
star
37

Method-Swizzling

Examples of method swizzling
Objective-C
1
star
38

CreditCardNumber-Generator

A command line utility, used to generate random and valid credit cards number for: Visa, Visa13Digit, MasterCard, Discover, AmericanExpress, DinersClubUSA, DinersClubCanada, DinersClubInternational, DinersClubCarteBlanche, JCB.
Swift
1
star
39

Esempio_13_MapKit

Corso App con iOS - 13
Objective-C
1
star
40

Esempio_08_Componenti

Corso App con iOS - 08
Objective-C
1
star
41

Esempio_07_Touch

Corso App con iOS - 07
Objective-C
1
star
42

Esempio_14_Network

Corso App con iOS - 14
Objective-C
1
star
43

App-Icon-Maker

A simple and free macOS utility to create the image assets for your applications in format @1x, @2x and @3x.
Swift
1
star
44

Esempio_05_Controllers

Corso App con iOS - 05
Objective-C
1
star
45

Esempio_02_Memoria

Corso App con iOS - 02
Objective-C
1
star
46

Unity-Color-Memo-Panel

A Unity3d editor plugin to set custom colors memo for your project.
C#
1
star
47

Tesla-Speech

Google translate speech implementation on Mac OSX - Cocoa
Objective-C
1
star
48

Esempio_06_Animazioni

Corso App con iOS - 06
Objective-C
1
star