iphone

Cocoa Touch, which to use: Window Template or View Template?

I have another issue related to Views, and i've ended up here dealing with Views and Windows in general. My understanding of all the fundamentals of iPhone development has been turned upside down. Can somebody explain, or point to a reference, the difference between these 2 templates? Ex: My app doesnt show a Window in the Interface B...

Making phone calls on the iPhone

How do I programmatically make phone calls on the iPhone? ...

Newbie iphone development question

I am trying to draw a map with routes from a file. I am trying to learn this procedure by following this blog (http://spitzkoff.com/craig/?p=108). When the process hits my function, it terminates (I have given the error message below) - (void) drawRoute { // // load the points from our local resource // NSString* filePath = [[NSBundle ...

How do I append text to an existing XML file without rewriting the entire document?

I have a large amount of data in an XML file, and I'd like to append data to this file without rewriting it every time. I already know how to write the entire file out, but I'm struggling with how to append data to this file. Do you have a suggestion for how to do this? ...

lost my iphone development certificates

I had everything working fine on my macbook (keychain, certificates, profiles …etc) for some reason I lost everything on my macbook including the backup of my certificates that I should use in the keychain assistant, currently I am working on installing the latest version of mac os and iphone sdk and xcode in order to develop for iphone ...

Multiple App Support Using APN on Rails Gem

Hello, I have a couple iPhone apps talking to one ruby on rails server. I have been using the apn_on_rails gem by mark bates/PRX (http://github.com/PRX/apn_on_rails) to offer push notifications to both apps. The README specifies how to support one app, but I need to support two apps. Not only that, but I would like to send out these not...

Using a newline character with Core Data and displaying it properly in the iPhone.

I'm storing a list of things in one string stored in a core data database. For example.. the stored string would look like @"apple \n pear \n orange". I'm using a UITextView to display the list and I want it to display like: apple pear orange ..but it just displays: apple \n pear \n orange Anyone know how to get it to honor the ne...

Xcode Renaming a Project - Malloc Error

Hi! I have an Xcode project for iPad which works (and compiles) flawlessly. I have been requested by my client to rename the project. Within Xcode, I selected Project > Rename and proceeded to recompile the project. Compilation goes through without errors, but when I try to test it on devices, the application fails to launch and dies w...

how to use variable that declared in classname.m to that particular classnameviewcontroller.m

hi i am new to iphone development. what i did is i am creating a class named imagepicker.h along with imagepicker.m,for that classes i am creating imagepickerviewcontroller.h and imagepickerviewcontroller.m.... in the imagepicker.m i am declring a button for that button assing a image tag value. "now what i need is how to get that buttio...

uislider: knob as background, bar as foreground - like a sidewindow from a car ?

if i want to have a custom slider, that looks quiet like a side-window from a car in its behaviour. so it has a graphical mask overlying. in the background the "window" may be dragged, so that the "glass" fills the whole mask - or in the other direction that the "glass" is not there anymore. is it possible as a modified slider or do i ...

How to change background image for one layer?

HI, I have 2 layer one is game layer and another one is change background layer now i want like if any user will select image from change background layer then in that background should be come in game layer scene. Can anyone tell me how can i do it using cocos2d? ...

Weird issue with UITabBarController

I have an application with UITabBarController with 8 items. First time I load the application it works all good. I can see the "More" button, I can click it and do all the fun stuff. Now, when the tabbar object is reload, after signout/signin, the more button act weird. First I don't see the "..." icon above the "More" text. And when I ...

can my app get rejected if a tableviewcell doesn't highlight?

I am not highlighting my uitableview cells when they are selected, but they contain clickable links which shows a new view. is this ok? ...

What is the corresponding UI widgets with android Gallery and Grid widgets in IPhone?

Android has Gallery and Grid widgets, what about iphone? Does those UI elements exist in IPhone or any other similar widgets? ...

memory leak with alloc

I have below code which is causing memory leak -(NSString *) getSingRecord: (NSString *) getStatement{ NSString *sql=getStatement; sqlite3_stmt *statement; NSString *fieldFlagI=@"0"; if (sqlite3_prepare_v2(db, [sql UTF8String], -1, &statement, nil) == SQLITE_OK) { while (sqlite3_step(statement) == SQLITE_ROW) { char *fie...

the ui of "New Message" of Mail app?

How to implement the UI of "New Message" of Mail app in iPhone.? ...

Create PJSIP library file (.a) for iPhone SDK 4

Does any one know the process to create the pjsip library (.a) file for iPhone SDK 4 on snow leopard? I have tried to create the file using the steps using which i have created .a file for leopard and iPhone SDK 3.0, it shows the error - for dir in pjlib pjlib-util pjnath third_party pjmedia pjsip pjsip-apps; do \ if make -C $...

how to trim thi url for iphone

how to remove degrre symbol form this URL NSString s= http://www.com/appfeed/default.php?app=1.31223°|103.865*°**|56a76d i want to trim that degree symbol( lat and long ) from this string plz help Thanks ...

didReceiveMemoryWarning advice (too many multitasking applications in the background)?

Please help, I don't know what I have to do with didReceiveMemoryWarning exactly. My app launched well, but when there is too many running background apps, it receives memory warning, and exit. I just want to show an alert that asks user to exit some background apps. I have an appDelegate, in its window there is a view of my viewControl...

Workaround for missing UIBarButtonItem's TouchUp event

Hey, using a UIButton allows me to catch TouchUpInside and TouchUpOutside events to know when the user releases the button with his finger. UIBarButtonItem doesn't have any events/notifications to be used in this manner. Does anyone know a nice workaround to know when a UIBarButtonItem is physically released? Is there a way to use an ...