FXForms icon indicating copy to clipboard operation
FXForms copied to clipboard

NSURL as FXFormFieldTypeLabel

Open cakl opened this issue 9 years ago • 1 comments

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.

cakl avatar May 26 '15 21:05 cakl

Same issue for me! Take a look here to see what i tried to do... #403

fabiosoft avatar Aug 27 '15 13:08 fabiosoft