iphone

Finding iPhone Application Identifier Prefix programmatically

Is there any way to find the application identifier prefix in you iPhone application programmatically? Or even just to get the entire Application Identifier string? I see you can find it by peeking into the "embedded.mobileprovision" file, but is there an easier way? (And I don't think that works if you're running in the simulator) EDI...

Best practice for ownership of a UINavigationController in a navigation based app?

Hi all My small app is growing more sprawling and I'm looking for some best practice advice on the management/ownership of view controllers and navigation controllers. Here's what I'm doing now: AppController is a singleton that creates and owns a UINavigationController instance. The app controller, and thus the navigation controller,...

action won't run on a CCSprite from within ccTouchBegan in cocos2d for iphone

Hi, I'm trying to basically scale up a button as soon as a touch is detected. Here's my Scene: @implementation HomeScene -(id) init { if((self = [super init])) { ... // sp_btn_story is retained... sp_btn_story = [[CCSprite spriteWithFile:@"main_menu_btn.png"] retain]; sp_btn_story.position = ccp(size.width - 146, 11...

reliable way to get iPhone touch input?

I started using the MoveMe sample to get touch input working. basically, I define these two callback functions to get my touch input: - (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event { for ( UITouch* touch in touches ) { printf("touch down"); } } - (void)touchesEnded:(NSSet *)touches withEvent:(...

Using HTML from bundle to save cookies in UIWebView?

So I have a web page inside my bundle, which I load in a UIWebView. However, the page doesn't seem to be able to store any cookies, even though other (online) websites can. How do I get it to store my cookies? ...

iPhone addSubview not brining the view to top

I am new to iPhone development. I have been looking at samples and make a sample for myself, but am stuck. I am trying to add a view to the AppDelegate class so it will show when the app is launched. code is as follows - (void)applicationDidFinishLaunching:(UIApplication *)application { [window addSubview:viewController.view]...

How to set showsCameraControls of a previously used UIImagePickerController?

I have a situation where I'm trying to store one instance of a UIImagePickerController. One use of it requires showCameraControls = YES and the other requires showCameraControls = NO. When it is first instantiated, it is set to NO. However, when I show the UIImagePickerController later on and specify showCameraControls equal YES, it has ...

iPhone security architecture

Hi, I want to study in detail about security architecture that iphone has implemented. after searching on internet, the only useful material that i found is iphone reference library. Where i am now a days studying the Architecture of OS and then i will seduty the "secure coding guide". I was wondering, if some of you guys, can lead me ...

Core Data Fetched Results Controller and Custom Section Header

I am familiar with the common and basic use of a NSFetchedResultsController managing the rows of a table, but I have an interesting problem. My data is organized as such: Schedule <--->> Day <--->> Route. I currently have a table view that has Schedules with a fetch controller managing the creation and deletion of Schedules. I now wan...

upload image in flickr from iphone

Hi All, I am developing a application where i want to load the image on flickr.I have seen the Snap and Run project where i tried to share the image using my API key but cannot do it. its giving response as invalid callback url. Can anyone help me with this as I am not able to do this,, Thanks in advance, ...

address book problem with some device

hello guys, In my app,I try to save the contacts to the address book: here is the code: ABRecordRef aRecord=ABPersonCreate(); ABRecordSetValue(aRecord,kABPersonNicknameProperty,(NSString*)nickName,&anError); ABAddressBookRef addressBook=ABAddressBookCreate(); if(!ABAddressBookAddRecord(addressBook, aRecord, &anError)) { //pop up an a...

Uiimage Imagenamed issue

Hello, i have heard that developers rarely used UIImage imagenamed: property bcoz it stores image in Cache memory. But my information says that from SDK 3.0 onwards, this issue is solved. can anybody pl. tell me whether i should use Imsgenamed: or not ? ...

Adding Contacts to Address Book(IPhone) from VCard

Hi, I need to add a contact in AddressBook of IPhone from the VCard i am getting from the server. Is there a way to do it in IPhone or i need to parse the Vcard file and create the IPhone contact from it. and i also need to send the contact in form of Vcard to the server. Is there a Framework or Api that do it. ...

about file sharing in iphone sdk?

Hi, i saw one application in App store.(files lite by olive toast). inwhich they have used web server(webDAV url) to transfer file from PC to ipod or iphone and also another option bonjour.how can i use bonjour (what is it ?)..how can i do for my application? internally how they have done?any help please? ...

iPhone Safari Web Application not using cache at all?

Hi, guys, I've been developing an iphone web application for a while, and encountered a weird problem: when open the web app in safari(with safari chrome, not starting it from home screen), safari can generate proper "If-Not-Modified-Since" and "If-None-Matches", so the server simply gives 304 Not Modified to speed up the process. howe...

iPhone: adding button to scrollview makes button inaccessible to interaction

For some reason, the button initialized in the addBook method of my viewController won't respond to touches. The selector I've assigned to it never triggers, nor does the UIControlStateHighlighted image ever appear when tapping on the image. Is there something intercepting touches before they get to the UIButton, or is its interactivity...

How to restore a navigationcontroller path when relaunching the app ?

Hi all, I am building an app based on a navigation controller. I would like that the user has the ability when he relaunches the app to see the last screen he saw when he quit the app. It's exactly like in the mail app, when you push "home" while composing a mail, then when you go back to your mails you directly arrive on the mail yo...

How to convert NSNumber to NSInteger

How to convert an NSNumber to NSInteger ? ...

How to remove the first pin while dropping consecutive pins in maps in iphone?

Hi, I am new to iphone development.I have created map applications and displayed the cuurent location and drop a pin to the current location.On clicking the button "Find Me", it drops a pin in my current location.Once again if i click the "Find Me" button it drops a pin but i am able to see the previously dropped pin in my current locat...

To display the title for the current loaction in map in iphone

Hi, I am new to iphone development. I have created map applications and i displayed the cuurent locations and drop a pin to the current location. now i want to display the title and subtitle of the current location when i am clicking the pin. Please help me out. Thanks. ...