FXForms
FXForms copied to clipboard
NSURL as FXFormFieldTypeLabel
AFAIK an NSURL property should be shown as -description
of the NSURL object. This does not work with the following code:
#import "UserResourcesForm.h"
@interface UserResourcesForm ()
@end
@implementation UserResourcesForm
-(NSArray*)fields {
return @[
@{
FXFormFieldHeader: @"Any Header",
FXFormFieldTitle: @"Parse",
FXFormFieldKey: @"parseURL",
FXFormFieldType: FXFormFieldTypeLabel,
},
];
}
- (instancetype)init
{
self = [super init];
if (self) {
self.parseURL = [NSURL URLWithString:@"www.parserkit.com"];
}
return self;
}
@end
If I do the same with NSString
instead of NSURL
everthing works as expected.
I'm using the newest version of FXForms.
Same issue for me! Take a look here to see what i tried to do... #403