iphone

iPhone Date Picker rolls over to 2010 on December 27th?

So I implemented a UIDatepicker in one of my applications for scheduling and autodialing teleconferences... everything is pretty much ready to go except, while testing I noticed that when the date rolls over from December 26th to December 27th, the year changes to 2010. I even rolled it forward to 2011... and it changes when December 2...

Get context from UIImageView

Hi, Can I get the context (CGContextRef) from exists UIImageView? Detail: I have a controller link to xib file. In IB I have added a UIImageView and reference its on: IBOutlet UIImageView *imageView; Now, in viewDidLoad How get the UIImageView context (CGContextRef)? Before this, If I use: CGContextRef context = UIGraphicsGetCurre...

iPhone sdk, save MPMediaItemCollection?

I have my application displaying a MPMediaPickerController. I would like to save the MediaItem and start it playing again on startup. I think this is doable using the MPMediaQuery. It seems, I should be using the MPMediaItemPropertyPersistentID but I am not sure how to query for it. Any thoughts? ...

Aspell Spell Checker on iPhone?

I've managed to compile the aspell as a static library for iPhone. I've the libaspell.a file and included it in my xcode project as a framework. Does anybody know how to use their c/c++ api for iphone? Is there any sample or example somewhere on the net? Thank you for any feedback in advance, John ...

NSXMLParser ignores element named <id>

Hi there, I'm using Wordpress's XML-RPC framework in my project. Now I have a situation where in the XML response there is a tag named which contains user data and by the time the response has been parsed and returned as some array format, that tag and it's value are gone. I have traced this down to NSXMLParser's parse method. Anyone ...

Importing an SSL cert under the iPhone SDK

My app connects to the Schwab OFX server using NSURLConnection . Unfortunately the server uses a very recent intermediate certificate that is trusted on the Mac desktop but not yet the iPhone. (Try the URL—you'll get a cert error on iPhone.) There's no easy way to tell NSURLConnection to ignore an invalid cert that I know of. Thus I'm t...

UINavigationBar with a static image

Adding an image to a UINavigationItem's titleView is pretty trivial, but when I push a new view on the stack it animates the UINavigationItem sliding off to the left, along with the titleView, and loads a new UINavigationItem. I can think of a number of ways to go about making that image stay put, but they all seem pretty hacky. Is the...

Disadvantage of using NSMutableArray vs NSArray?

I'm using an array to store cached objects loaded from a database in my iPhone app, and was wondering: are there any significant disadvantages to using NSMutableArray that I should know of? edit: I know that NSMutableArray can be modified, but I'm looking for specific reasons (performance, etc..) why one would use NSArray instead. I ass...

Application Failure in Cydia Repo

Hello everyone, I've recently made a repo for cydia and posted my application on it. When I download my app it installs perfectly find, but when I launch it, it will suddenly close. It works fine on the simulator, but I don't know whats going wrong. Can anyone pinpoint me to where I have a mistake. BTW I deleted all the DS_Store stuff o...

Can't connect IBOutlet in Interface Builder

I'm having a weird experience. I create any type of iPhone application, add a UIViewController with Xib file. I can edit the xib file with controls and see them rendered if I run. Now i'm trying to add a few IBOutlets to the controller, so I add them to the .h file, synthesize on the .m file. Then i head over to Interface Builder to conn...

How to send a touch event to iPhone OS?

Im writing an app running in background on a jailbreak iphone. I need to send touch event to iPhone OS to simulate finger touches. Is this possible? ...

How to handle navigationController on other class

i have class like this DrillDownAppAppDelegate.h PictureCell.h RootViewController.h SlideShowViewController.h DrillDownAppAppDelegate.m PictureCell.m RootViewController.m SlideShowViewController.m i want to hide my navigation bar,in class SlideShowViewController when i tap on the screen but it doesn't work my code is [self.navigatio...

Automatic "force repel" layout in Cocoa

You know that in a lot of Mac/iPhone applications (such as your Finder), when you are dragging a icon around, all other icons will be "repelled away" from your mouse and leave space for the icon you are dragging. I am wondering if that's a built-in Cocoa function (in layout constraints etc?). If not, is there any library, or documents o...

iPhone + clear all UI Controls from View

Hi, I have a view in which I have few labels and I want to dynamically clear the view (remove all the labels) at certain condition in my application. Please help me Regards, Pratik ...

how to append the value from picker to textfield

i am hvaing a picker, which displays data from 2 arrays, say like it is a picker with 2 sections. now i want the selected values from both the sections, to appear in a single textfield. i tried with textField.text=[[First_Array ObjectAtindex:row]appendString:[Second_Array ObjectAtIndex:row]]; But it gives error "Void Value not ignored...

Creating a constantly updating feed like Twitter

I'd like to have something in my app that is just like Twitter but not Twitter. Basically it will be a place people can submit messages and do not need an account. They only way they can submit is through the app. I want other app users to see the submitted messages nearly immediate. I believe push notification can do that sort of wo...

question about locale

NSLocale *curentLocale = [NSLocale currentLocale]; NSString *locale = [curentLocale displayNameForKey:NSLocaleIdentifier value:[curentLocale localeIdentifier]]; NSLog(@"locale = %@",locale); I'm getting on console locale = English (India) .this comes because my device is from india. if i take the country with maximum charactor an...

How to access a local host url in Objective-C for iPhone OS

Hi, I want to access a local host url from an application in Objective-C for iPhone OS. How to access the file which is located in the local host from the calling application???kindly give me a coding example... ...

Most likely to be on-time: +timeWithTimeInterval or -performSelector:withObject:afterDelay:

I would like to play a sound for only a short span of time, shorter than the duration of the sound file. Therefore, at the same time as I start playing, I would like to queue up a task that will stop the sound. I see two choices for queuing up the stop method: NSTimer and performSelector:withObject:afterDelay: Does anyone know whic...

sending text messages in iphone programmatically

Hi all, Is it possible to send text messages using iphone programmatically ? I think its not possilbe, its more like sending SMS programmatically. Are there any web service or api available for this ? Any suggestions ? thanks ...