Skip to content

Commit f1497ca

Browse files
committed
Use weak instead of unowned references
Fixes #495 and #496, thanks @via-guy.
1 parent 2008004 commit f1497ca

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

InAppSettingsKit.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = 'InAppSettingsKit'
3-
s.version = '3.7.2'
3+
s.version = '3.7.3'
44
s.summary = 'This iPhone framework allows settings to be in-app in addition to being in the Settings app.'
55

66
s.description = <<-DESC

Sources/InAppSettingsKit/include/IASKAppSettingsViewController.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ typedef NS_ENUM(NSUInteger, IASKValidationResult) {
224224
@interface IASKAppSettingsViewController : UITableViewController <IASKViewController, UITextFieldDelegate, MFMailComposeViewControllerDelegate>
225225

226226
/// the delegate to customize IASK’s behavior. Propagated to child view controllers.
227-
@property (nonatomic, assign) IBOutlet id<IASKSettingsDelegate> delegate;
227+
@property (nonatomic, weak) IBOutlet id<IASKSettingsDelegate> delegate;
228228

229229
/** base name of the settings plist file (default: `Root`)
230230
@discussion IASK automatically checks for specific or custom inApp plists according to this order (`DEVICE` being a placeholder for "iphone" on iPhone and "ipad" on iPad):

Sources/InAppSettingsKit/include/IASKMultipleValueSelection.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ NS_ASSUME_NONNULL_BEGIN
2222
/// This is used for PSMultiValueSpecifier and PSRadioGroupSpecifier
2323
@interface IASKMultipleValueSelection : NSObject
2424

25-
@property (nullable, nonatomic, assign) UITableView *tableView;
25+
@property (nullable, nonatomic, weak) UITableView *tableView;
2626
@property (nonatomic, copy, readonly) NSIndexPath *checkedIndexPath;
2727
@property (nonatomic, strong) id<IASKSettingsStore> settingsStore;
2828

0 commit comments

Comments
 (0)