Re: Need Help with Swift
Re: Need Help with Swift
- Subject: Re: Need Help with Swift
- From: Stevo Brock <email@hidden>
- Date: Fri, 04 Dec 2015 00:07:01 -0800
This seems to do the trick.
I wasn’t able to just do ABC.class, as the “.class” wasn’t registered as valid.
What I ended up with was a static method on the class, and calling the static method, and voilà! Everything is working.
So now to clean things up…
Thanks guys so much for your help.
-Stevo Brock
Owner
Sunset Magicwerks, LLC
www.sunsetmagicwerks.com
@SunsetMagicwrks
818-478-9758
> On Dec 3, 2015, at 11:45 PM, Roland King <email@hidden> wrote:
>
>
>> On 4 Dec 2015, at 15:42, Stevo Brock <email@hidden <mailto:email@hidden>> wrote:
>>
>> So strange…
>>
>> I added
>>
>> class IB_MediaItemViewController_PhotoMediaItemView : MediaItemViewController<PhotoMediaItemView>
>> {
>> }
>>
>> and used IB_MediaItemViewController_PhotoMediaItemView in the Storyboard, and I still see this error:
>>
>> 2015-12-03 23:35:52.400 Media Tools[14523:313526] Unknown class _TtC11Media_Tools45IB_MediaItemViewController_PhotoMediaItemView in Interface Builder file.
>>
>> So strange…
>
> Try using it somewhere - even in a method which can’t possibly ever get called. I don’t know if Swift suffers from the same problem with IB as ObjC does, that if you have a class which is reference ONLY in your IB file, and not in code, none of the code for it actually ends up in the binary.
>
> I have little hack files in some of my projects which just do
>
> SomeClassIWantToLoad.class
>
>
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden