receiving error Unknown class PFImageView in Interface Builder file for parse

后端 未结 3 1087
执笔经年
执笔经年 2021-01-21 00:47

I attempted to setup pfimage view storyboards in the following manner:

I dragged a UIImageView and then changed its class identity to PFImageView.

Then I dragged

相关标签:
3条回答
  • 2021-01-21 01:16

    I couldn't get around this problem so I ended up just creating the PFImageView entirely in code. There's a couple examples of this in the Anypic project. I would like to figure out the cause of this problem and how to resolve it, but for now doing it in code allows me to get around it.

    0 讨论(0)
  • 2021-01-21 01:33

    If I alloc init PFImageView in the .m file it works without adding [PFImageView class]; in appDelegate

    0 讨论(0)
  • 2021-01-21 01:39

    "Unknown class PFImageView in Interface Builder file"

    Adding the following to applicationDidLaunch in your AppDelegate forces the view class to load so it may be referenced correctly

    //In AppDelegate / applicationDidLaunch add:

    [PFImageView class];

    //Pictures loads perfectly now!!:)

    0 讨论(0)
提交回复
热议问题