Application crashes when working with core plot

后端 未结 2 570
滥情空心
滥情空心 2021-01-13 03:27
Unknown class CPTGraphHostingView in Interface Builder file.
2012-01-09 16:09:34.242 ChartArea[2595:207] -[UIView setHostedGraph:]: unrecognized selector sent to ins         


        
2条回答
  •  囚心锁ツ
    2021-01-13 04:18

    I had the same problem and this worked for me:

    Select your project from the navigator panel in Xcode and then highlight the Build Settings tab. Filter the settings or locate ‘Other Linker Flags’ from this list and then add -ObjC -all_load to these settings

    (From here: http://www.johnwordsworth.com/2011/10/adding-charts-to-your-iphone-ipad-app-using-core-plot/)

提交回复
热议问题