Skip to main content

Fixing XYPieChart crashing in XCode Objective-C mobile app

I was embedding XYPieChart into one of my apps in order to get some cool pie charts into my app. It was crashing so I searched for ways to fix it. A guy had posted that the app needed to be using ARC, the memory management capability in Xcode. Here's how you to switch your app to use ARC for XYPieChart:

First you need to change the XYPieChart.h file so that "datasource" and "delegate" are not "weak". These must be "strong" in order to use ARC. By default the XYPieChart has these set to "weak". See below in terms of how this should look after changing to "strong".

Next, with your project open, go to "Edit" then "Reformat" then "Convert to Objective-C ARC".

The following screen will appear:

Select "Next" and walk through the steps.


  1. I am undeniably thankful to you for providing us with this invaluable details. My spouse and I are truthfully grateful, absolutely the critical info we needed.
    Best Mobile Website Soultion Provider


Post a Comment

Popular posts from this blog

6 Key Steps to a Successful Mobile Apps Strategy

What IT Can Do to Lead a Successful Mobile App Strategy CIO’s are under pressure to deliver business capabilities on mobile devices, all while optimizing budgets, increasing operational excellence, and providing innovative, secure solutions. It’s a complex juggling act. In the mobile space, it’s tempting to just jump in and start building mobile apps. But corporate IT needs to help balance the exuberance of building apps with using a common set of success criteria. This is especially true if the enterprise wants a manageable and successful mobile app effort, defined by usage, adoption and business value. While corporate IT can provide technical design and architecture expertise, even more important is the role they play in terms of coordinating the enterprise mobile app strategy. Here are six key steps for doing so: 1. Create a cross-functional “mobile app working team” This is a group of business and IT team members that are passionate about creating mobile solutions

Quadrennial Energy Review - Jan 2017 (notes) "The electricity system we have today was developed over more than a century and includes thousands of generating plants, hundreds of thousands of miles of transmission lines, distribution systems serving hundreds of millions of customers, a growing number of distributed energy resources, and billions of enduse devices and appliances. These elements are connected together to form a complex system of systems." "The electricity sector is, however, confronting a complex set of changes and challenges, including: aging infrastructure; a changing generation mix; growing penetration of variable generation; low and in some cases negative load growth; climate change; increased physical and cybersecurity risks; and in some regions widespread adoption of distributed energy resources

The End of Solitude - Response to William Deresiewicz

I recently read an article by William Deresiewicz titled “ The End of Solitude ”. What prompted me to read the article was an interview with Mr. Deresiewicz that I heard on NPR. During the NPR interview, Mr. Deresiewicz delved into the importance of solitude, being alone and time for self-reflection. Of course, you are naturally drawn to premises that are similar to your own so I listened intently as he contrasted the present with the past regarding the lack of “alone” time that we all face today. Mr. Deresiewicz’s literary knowledge is beyond impressive – he’s an academic and is able to compare and contrast numerous thought-leaders of the past and their views of the value of solitude. In “The End of Solitude” he highlights the importance of solitude that numerous philosophers and famous authors have written about for many, many years. My personal appreciation for Thoreau’s writing, specifically Walden and more specifically “Solitude” and “Economy” immediately came to mind as I read