Skip to content

Commit 6668c8b

Browse files
committed
[new] Pushed version 1.3.0
1 parent 40ae1be commit 6668c8b

File tree

9 files changed

+34
-20
lines changed

9 files changed

+34
-20
lines changed

Classes/MPFormatterUtils.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
//
22
// MPFormatterUtils.h
33
//
4-
// Version 1.1.0
4+
// Version 1.3.0
55
//
66
// Created by Daniele Di Bernardo on 06/04/14.
7-
// Copyright (c) 2014 marzapower. All rights reserved.
7+
// Copyright (c) 2017 marzapower. All rights reserved.
88
//
99
// The MIT License (MIT)
1010
//
11-
// Copyright (c) [2014-2015] [Daniele Di Bernardo]
11+
// Copyright (c) [2014-2017] [Daniele Di Bernardo]
1212
//
1313
// Permission is hereby granted, free of charge, to any person obtaining a copy
1414
// of this software and associated documentation files (the "Software"), to deal

Classes/MPFormatterUtils.m

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
//
22
// MPFormatterUtils.m
33
//
4-
// Version 1.1.0
4+
// Version 1.3.0
55
//
66
// Created by Daniele Di Bernardo on 06/04/14.
7-
// Copyright (c) 2014 marzapower. All rights reserved.
7+
// Copyright (c) 2017 marzapower. All rights reserved.
88
//
99
// The MIT License (MIT)
1010
//
11-
// Copyright (c) [2014-2015] [Daniele Di Bernardo]
11+
// Copyright (c) [2014-2017] [Daniele Di Bernardo]
1212
//
1313
// Permission is hereby granted, free of charge, to any person obtaining a copy
1414
// of this software and associated documentation files (the "Software"), to deal

Classes/MPNumericTextField.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
//
22
// MPTextField.h
33
//
4-
// Version 1.1.0
4+
// Version 1.3.0
55
//
66
// Created by Daniele Di Bernardo on 05/04/14.
7-
// Copyright (c) 2014 marzapower. All rights reserved.
7+
// Copyright (c) 2017 marzapower. All rights reserved.
88
//
99
// The MIT License (MIT)
1010
//
11-
// Copyright (c) [2014-2015] [Daniele Di Bernardo]
11+
// Copyright (c) [2014-2017] [Daniele Di Bernardo]
1212
//
1313
// Permission is hereby granted, free of charge, to any person obtaining a copy
1414
// of this software and associated documentation files (the "Software"), to deal

Classes/MPNumericTextField.m

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
//
22
// MPTextField.m
33
//
4-
// Version 1.1.0
4+
// Version 1.3.0
55
//
66
// Created by Daniele Di Bernardo on 05/04/14.
7-
// Copyright (c) 2014 marzapower. All rights reserved.
7+
// Copyright (c) 2017 marzapower. All rights reserved.
88
//
99
// The MIT License (MIT)
1010
//
11-
// Copyright (c) [2014-2015] [Daniele Di Bernardo]
11+
// Copyright (c) [2014-2017] [Daniele Di Bernardo]
1212
//
1313
// Permission is hereby granted, free of charge, to any person obtaining a copy
1414
// of this software and associated documentation files (the "Software"), to deal

Classes/MPNumericTextFieldDelegate.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
//
22
// MPNumericTextFieldDelegate.h
33
//
4-
// Version 1.1.0
4+
// Version 1.3.0
55
//
66
// Created by Daniele Di Bernardo on 06/04/14.
77
// Copyright (c) 2014 marzapower. All rights reserved.
88
//
99
// The MIT License (MIT)
1010
//
11-
// Copyright (c) [2014-2015] [Daniele Di Bernardo]
11+
// Copyright (c) [2014-2017] [Daniele Di Bernardo]
1212
//
1313
// Permission is hereby granted, free of charge, to any person obtaining a copy
1414
// of this software and associated documentation files (the "Software"), to deal

Classes/MPNumericTextFieldDelegate.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
//
22
// MPNumericTextFieldDelegate.m
33
//
4-
// Version 1.1.0
4+
// Version 1.3.0
55
//
66
// Created by Daniele Di Bernardo on 06/04/14.
77
// Copyright (c) 2014 Charcoal Design. All rights reserved.
88
//
99
// The MIT License (MIT)
1010
//
11-
// Copyright (c) [2014-2015] [Daniele Di Bernardo]
11+
// Copyright (c) [2014-2017] [Daniele Di Bernardo]
1212
//
1313
// Permission is hereby granted, free of charge, to any person obtaining a copy
1414
// of this software and associated documentation files (the "Software"), to deal

LICENSE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) [2014-2015] [Daniele Di Bernardo]
3+
Copyright (c) [2014-2017] [Daniele Di Bernardo]
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

MPNumericTextField.podspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = "MPNumericTextField"
3-
s.version = "1.2.1"
3+
s.version = "1.3.0"
44
s.summary = "A class that extends UITextField to input numbers, percentages and currencies."
55

66
s.description = <<-DESC
@@ -15,7 +15,7 @@ Pod::Spec.new do |s|
1515
s.social_media_url = "http://twitter.com/marzapower"
1616

1717
s.platform = :ios, "6.0"
18-
s.source = { :git => "https://github.com/marzapower/MPNumericTextField.git", :tag => "1.2.1" }
18+
s.source = { :git => "https://github.com/marzapower/MPNumericTextField.git", :tag => "1.3.0" }
1919
s.source_files = "Classes", "Classes/**/*.{h,m}"
2020
s.exclude_files = "Classes/Exclude"
2121
s.public_header_files = "Classes/**/*.h"

README.md

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Installation
1717
Just add the following line to the `Podfile` in your project:
1818

1919
```ruby
20-
pod "MPNumericTextField", '~> 1.2.1'
20+
pod "MPNumericTextField", '~> 1.3.0'
2121
```
2222

2323
### Manually
@@ -83,6 +83,16 @@ By default behavior the `MPNumericTextField` will use the `[NSLocale currentLoca
8383
numericTextField.locale = myCustomLocale;
8484
```
8585

86+
### Custom currencies
87+
88+
When using `MPNumericTextField` for displaying currencies, an old limitation was to be stuck with the currency code provided by `NSLocale`.
89+
90+
Starting from v. 1.3.0 it's possible to set a custom currency code to represent those values using the desired currency:
91+
92+
```objective-c
93+
numericTextField.currencyCode = @"JPY";
94+
```
95+
8696
### Delegates
8797

8898
The `MPNumericTextField` class seamlessly uses the `MPNumericTextFieldDelegate` class as its own delegate. This delegate handles all the
@@ -115,6 +125,10 @@ If you need further assistance, please contact me on Twitter: [@marzapower][twit
115125

116126
## Release notes
117127

128+
Version 1.3.0
129+
- [new] Custom currency codes for the text field
130+
- [new] Nullability modifiers for the utility methods in `MPFormatterUtils`
131+
118132
Version 1.2.1
119133
- [fix] Doesn't use cached locale anymore when system locale changes
120134

0 commit comments

Comments
 (0)