Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 5    Views: 84

Niraj
buzztouch Evangelist
Profile
Posts: 2943
Reg: Jul 11, 2012
Cerritos
37,930
02/09/14 02:05 AM (11 years ago)

RSS Plugin severe warnings showing

For the iOS version of the RSS plugin, the Debug Console is showing stern warnings in relation to the Header Image. It happens at Line 178 inside the Rd_simplerss.m file for BT v3 on iOS 7 Simulator for iPhone 4 [tmpHeaderImg drawInRect:CGRectMake(0.1f, imageTop, imageWidth, imageHeight)]; The stern warnings are: <Error>: XXXXXX: invalid context 0x0. This is a serious error. This application, or a library it uses, is using an invalid context and is thereby contributing to an overall degradation of system stability and reliability. This notice is a courtesy: please fix this problem. It will become a fatal error in an upcoming update. Where XXXX is the type of error that was shown. The rest of the error remained the same. - CGContextSaveGState - CGContextSetBlendMode - CGContextSetAlpha - CGContextTranslateCTM - CGContextScaleCTM - CGContextDrawImage - CGContextRestoreGState Wow! CoreGraphics really took offense on that line! ------------- Also, the Header image lets the things slide under it, yet the items are still visible through the Header. That is different behavior than Chris1 Menu Advanced Pro -- it had an opaque header. ( I used the same header for both RSS and Menu Advanced Pro screens ) ------------- Thank you, -- Niraj
 
mysps
Code is Art
Profile
Posts: 2082
Reg: May 14, 2011
Palma
33,320
like
02/09/14 03:06 AM (11 years ago)
Niraj, which version of the RSS plugin are you using?
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
02/09/14 06:44 AM (11 years ago)
Xcode 5 ramped up the stipulations on core graphics, making it harder to compile. Would need to see more of the code to know what it's trying to do, but my guess is it's trying to round the corners. There's a much easier way of doing this, using the cornerRadius property. Check out the Interactive Quiz plugin for a good implentation. (I had to fix the same issue there).
 
Red Dog
buzztouch Evangelist
Profile
Posts: 805
Reg: Jun 16, 2011
Southern Califo...
18,800
like
02/09/14 10:09 AM (11 years ago)
Hi Niraj. What settings are you using to allow the feed list to slide under the header image?
 
Niraj
buzztouch Evangelist
Profile
Posts: 2943
Reg: Jul 11, 2012
Cerritos
37,930
like
02/09/14 08:13 PM (11 years ago)
I am using the latest version of the plugin. Here is my hand-coded JSON: { "itemId": "NewsAll", "itemType": "Rd_simplerss", "itemNickname": "NewsAll", "navBarTitleText": "News", "headerImageNameSmallDevice": "Header.png", "backgroundImageScale": "top", "headerImageTopPosSmallDevice": "0", "headerImageWidthSmallDevice": "320", "headerImageHeightSmallDevice": "124", "headerImageCornerRadiusSmallDevice": "0", "listBackgroundColor": "clear", "listRowBackgroundColor": "clear", "listColor": "clear", "listTitleFontColor": "#FBEC5D", "listDescriptionFontColor": "#ffffff", "listRowSeparatorColor": "#99AABB", "backgroundImageNameSmallDevice": "NewsBackground.png" "dataURL": "http://feeds.feedburner.com/SeahawksTeamNews", "xmlItemTagName": "item", "xmlItemTitleName": "title", "xmlItemDescriptionName": "description", "xmlItemLinkName": "link", "rssItemRowTapTransitionType": "0", "rssItemShowBrowserBarBack": "0", "rssItemShowBrowserRefresh": "1" }
 
Niraj
buzztouch Evangelist
Profile
Posts: 2943
Reg: Jul 11, 2012
Cerritos
37,930
like
02/17/14 12:50 AM (11 years ago)
What is the fix for the CoreGraphics problem? Anyone who uses the RSS Plugin on iOS 7 will have that problem. It is hidden in the log file, that is why it is not widely known as something to be resolved. Thanks, -- Niraj
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.