iphone

Best XML Parser for RSS Feeds in Objective C ?

Hi all, I am going to develop an application which will parse the RSS feeds and display the items in my custom cell.(Cell containing the image, label, description, etc). The most popular way of parsing is using the NSXMLParser. But this is bit of a lengthy way. So is there any other way to do this. Or my question will be, which is the b...

Facebook API for iPhone: including html link in the post

Hello, i'm using the Facebook API on an iPhone application but can't figure out how to include a clickable link in my the description of my post. Tried to put the in it but it's removed from the message. Any idea? ...

Multiple CALayer performance issue

Hello all, I'm currently facing some performance issues, when using several custom layers as sublayers inside my view. After creating my new layer programmatically, I add it as sublayer, like: [self.view.layer addSublayer:myNewSublayer]; This works just fine. However, when doing this over and over my app starts to slow down more an...

Can I provide nil for the -dequeueReusableCellWithIdentifier: method?

dequeueReusableCellWithIdentifier: Returns a reusable table-view cell object located by its identifier. (UITableViewCell *)dequeueReusableCellWithIdentifier:(NSString *)identifier Parameters identifier A string identifying the cell object to be reused. By default, a reusable cell's identifier is its class n...

Create a view like Tweetie's User Profile view

Hi, I'm just wondering if anyone has any idea on how you can create a view that looks like the user profile view in apps like Tweetie, where there are seemingly multiple tables with a couple of normal (straight up and down tables) and then two rows of six cells, which in Tweeties case have the number of followers, following etc. I'm tr...

UISegmentedControl tint color on touch

Hey everyone, I have a UISegmentedControl in my app (see code below) : // --------------- SETTING NAVIGATION BAR RIGHT BUTTONS NSArray *segControlItems = [NSArray arrayWithObjects:[UIImage imageNamed:@"up.png"],[UIImage imageNamed:@"down.png"], nil]; segControl = [[UISegmentedControl alloc] initWithItems:segControlItems]; segControl.s...

Archive/ unarchive objects in iPhone OS 3.0 & 2.2.1

Hi I am trying to archive, unarchive objects using NSKeyedArchiver, NSKeyedUnarchiver, NSCoding (initWithCoder, encodeWithCoder methods) in order to access the last view before the application was terminated. This works with OS 3.0 and above, but for OS 2.2.1, the objects are unarchived but a blank screen is displayed on application r...

Get phone number of current call on iphone

Is it possible to get phone number of a call during that call? Or, at least, get the phone number of the last received call? ...

Drawing selected state on custom UITableViewCell

I have a customer UITableViewCell whose whole display is drawn indrawRect. When it draws it creates CGLayers so that it can reuse certain pieces when something is changed. I have changed my UITableViewCellSelectionStyle to "None" because I don't want the default selected view to cover my drawing. My problem is that I call setNeedsD...

Localizing iPad applications

I am creating an iPad application, and I have a Localizable.strings file, which is in English and Dutch: English.lproj/Localizable.strings "failed to copy file" = "Failed to copy file"; "failed to copy defaultFeeds.plist" = "Failed to copy defaultFeeds.plist form the application's bundle to the device's documents directory for this app...

Device detect with xcode ! {iPhone SDK}

Hi, is there any way to detect device with xcode ? i mean when my app runs on the iphone 3g , show an alert an says this feature works only 3gs thank you . ...

How to add numbers in a mutable array in iphone?

I am new to iphone development.I want a Nsmutable array to hold numbers from 1 to 100.How i can do it.how can i implement in a for loop.Is there any other way to hold numbers in array in iphone.Please help me out.Thanks. ...

x264 IDR access unit with a SPS and a PPS

Hi All, I am trying to encode video in h.264 that when split with Apples HTTP Live Streaming tools media file segmenter will pass the media file validator I am getting two errors on the split MPEG-TS file WARNING: Media segment contains a video track but does not contain any IDR access unit with a SPS and a PPS. WARNING: 7 samples (17....

obj-c problem setting array with componentsSeperatedByString

I have a data source with about 2000 lines that look like the following: 6712,Anaktuvuk Pass Airport,Anaktuvuk Pass,United States,AKP,PAKP,68.1336,-151.743,2103,-9,A What I am interested in is the 6th section of this string so I want to turn it into an array, then i want to check the 6th section [5] for an occurrance of that string "PA...

Pushing mail from postfix to iPhone

Hi, Is there anything out there (pref. open source) to push email to the iPhone like Exchange does? Thanks, Jason ...

Does iPhone libffi require jailbreak?

Hi, I'd like to write an app-store-approvable app for the iPhone OS which uses libffi. Is this allowed? I am capable of rewriting all of the parts that use it with things like NSInvocation without too much trouble, but would prefer libffi. So my question is: would apps that use libffi be rejected from the app store? ...

trying to draw scaled UIImage in custom view, but nothing's rendering

I've created a custom view class and right now just want to draw an image scaled to fit the view, given a UIImage. I tried just drawing the UIImage.CGImage, but as others have attested to on this site (and in the docs), that renders the image upside down. So, at the suggestion of an answer I found to another question, I'm trying to dra...

Issue with UITextView in an animation block

I'm having an issue with a UITextView inside another UIView whose frame is manipulated in an animation block when the keyboard displays. During the animation block the UIView scales beautifully and as expected, but the UITextView jumps out of it's superview(the UIView being animated) at the start of the animation. By the end of the ani...

How can I make the text of a UIBarButtonItem wrap to two lines?

Some of the titles of view controllers in my UINavigationController are quite long, which makes the back button in the navigation bar of the next view controller in the hierarchy miss out some of the text, with a "..." instead. How could I make the text of the back button wrap onto two lines, as with "Now Playing" in the navigation bar ...

Two Problems I'm having with UIButton and UIView.

Hi all, I haven't been programming on the iPhone for very long, but I'm picking it up slowly by googling problems I get. Unfortunately I haven't been able to find an answer for these. I have started a new View-based application in Xcode 3.2.2 and immediately added the following files: myUIView.m and myUIView.h, which are subclasses of ...