Discussion Forums  >  Uncategorized

Replies: 7    Views: 424

CoolShaikh
I hate code!
Profile
Posts: 27
Reg: Aug 31, 2011
Edison
270
09/19/11 10:07 AM (14 years ago)

RSS Feed Title Wordwrap

How can I get the title in the RSS feed to word wrap? I am displaying the image thumbnails and the title barely shows a word or two and gets cut off. Changing the title row height didn't help.
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
09/19/11 11:48 AM (14 years ago)
RSS feeds can get super complicated. I'm surprised the titles are getting cut off, have you tinkered with the title height setting? The title will not word-wrap (one line) but the description will. Also, I've seen cases where app owners have set the image / icon in row lists super 'wide / tall' and it ended up taking up half the screen - funny. Keep your RSS icons around 70 px or smaller (57 iphone, 72 ipad is best) then tweak the title height. Re-post if you can't get it to work.
 
CoolShaikh
I hate code!
Profile
Posts: 27
Reg: Aug 31, 2011
Edison
270
like
09/19/11 11:51 AM (14 years ago)
The title height isn't the problem. I have the images at 50px but even then the title doesn't have enough room on an iPhone screen. Any way to display the title on 2 lines perhaps?
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
09/19/11 12:01 PM (14 years ago)
All the lists in the app use the same 'cell' to display data. In iOS this is called a UITableViewCell (not sure of your experience?). For your app this UITableViewCell has been customized and is called: BT_cell_menuList. You can find this file in the BT_Objects folder. This file is used on all lists. (Menus, RSS, Search, etc) throughout your project. For RSS screens, you can see where it's referenced in the cellForRowAtIndexPath method. This is in BT_screen_rssReader.m staring around line 377. An idea would be to create your own UITableViewCell class. Start by copying the existing BT_cell_menuList.h and .m files, name your new ones like cell_menu_rss.h, cell_men_rss.m - I think you get the idea. At that point, change the references in the screen_rssReader.m file to your new cell files. Then...hack away, you can do whatever you want without worrying about breaking something else? lastly: Thousands of these rss screens are out there and I've never heard of anyone saying the title didn't show. I'm still a bit confused as to why it wouldn't? Hmm...mabye giant font or something? Just seem strange. I think you'll be well served by hacking around a bit with a new cell you create on your own - good learning too ;-)
 
CoolShaikh
I hate code!
Profile
Posts: 27
Reg: Aug 31, 2011
Edison
270
like
09/19/11 12:07 PM (14 years ago)
I have the title and body fonts at their default heights (blank). I'll play around a bit with it. You are right, it is good learning :-) This is my first foray into iOS development. I'm primarily a Windows developer. Thanks to your site though, I'm well ahead in my app than where I would be without it (presumably still on chapter one of Objective C and Cocoa fundamentals.)
 
MGoBlue
Apple Fan
Profile
Posts: 980
Reg: Jun 07, 2011
Gold River, CA
10,600
like
09/19/11 01:25 PM (14 years ago)
On a number of my apps, I put the author in the title field (and usually set the font to 10-pt) and the title in the description field. That way the title wraps. I generally find there is no need for the description, especially from news feeds as the title says it all.
 
CoolShaikh
I hate code!
Profile
Posts: 27
Reg: Aug 31, 2011
Edison
270
like
09/19/11 01:29 PM (14 years ago)
That sounds like a great idea MGoBlue. I'm going to try that. Thanks for the tip.
 
CoolShaikh
I hate code!
Profile
Posts: 27
Reg: Aug 31, 2011
Edison
270
like
09/19/11 02:31 PM (14 years ago)
@MGoBlue, Thanks. That worked out great.
 

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.