iphone

iphone Memory gets freed in debug mode but not in release mode

I have been testing my iPhone debug build on both my device and simulator with activity monitor, leaks, and object allocations. The code is pretty well optimized so I have decided to test the release build. I went into the project Menu and set the target build to be release, I then added the necessary header paths that my app is using to...

UIDEVICE orientation

hello all i have my splash screen which i want to show in landscape mode and all other screen in potrait mode. My root view controller is acting as a splash screen i am writing this code in viewdidload method [[UIDevice currentDevice] setOrientation:UIInterfaceOrientationLandscapeRight]; But this code is not working and shows me tha...

Error With CBitmapContextCreate, CGContextDrawImage, CGBitmapContextCreateImage

Error: CGBitmapContextCreate: invalid data bytes/row: should be at least 400 for 8 integer bits/component, 3 components, kCGImageAlphaNoneSkipFirst. Error: CGContextDrawImage: invalid context Error: CGBitmapContextCreateImage: invalid context Currently, I have in application that runs perfectly in OS 4.0, but I have been trying to get...

How to use UIMenuItem for UIMenuController?

Hi, i planned to customize the menu item pop-up menu in my uiwebview but i dont know how to do this. Thank you for your help. zaldzbugz ...

how to parse pdf document in iphone or ipad?

I am making one application in which i want to parse pdf document.I dont know how to implement.Please provide me some sample code and document.thanks in advance. ...

iPhone AVAudioPlayer failed to find codec

Hello, I am writing an app that downloads a wav file from a server and needs to play that file. The files use the mulaw codec with 2:1 compression. These wav files are dynamically created by a seperate process so there is no way for me to preconvert the files to a different format or codec, I need to be able to play them as is. I am ...

NOt able to parse "&"

HI all, my xml consist of words in few different language,latin words etc. i am able to parse these latin characters n all except the fact,that i am not able parse only "&" This is wat i am getting @gdb > Entity: line 223: parser error : > xmlParseEntityRef: no name Ull > always be mine 4 now & 4ever.Ull > always be mine 4 u r my trea...

Make iPad app a Universal app

I have an iPad app that I would like to make Universal, however this seems alarmingly difficult. I've changed things around so that I support both builds, but when building, I get lots of errors about using UIPopOvers. Here're my questions: Why does UI_USER_INTERFACE_IDIOM() not compile or register on 3.1.3? Can I conditionally have va...

Action Sheet shown in self.view doesnt autorotate with device

action sheet shown in self.view doesnt autorotate with device. Tried "showFromToolbar" option also. Any suggestions?? ...

comparison between iphone OS 3.0 and 3.1.3?

i want to know in Detail comparison between iPhone OS 3.0 and 3.1.3 and also want to to about all newly added features in OS 4.0 so please give a link or some source which gives the comparison and Newly added features in details with Description. ...

showing custom menu on selection in UIWebView in iphone

I want to show 2 options like "hi" & "bye" when user completes selection on UIWebView. I have added observer to my view controller as follows. But I don't know further implementation. Please guide me. [[UIMenuController sharedMenuController] addObserver:self forKeyPath:UIMenuControllerWillShow...

Dragging in UIWebView

Hi, Is there a way to prevent a UIWebView from being dragged? Also, is there a way to actually overwride the common UIWebView functions such as highlighting? Hope someone can answer me. Thanks ...

Unzip a zip file and store it to Documents directory in iphone through code

Hi, I need to download a zip file from a given url , unzip it to extract the file and store the unzipped file in "Documents" folder. Thanks, Farha ...

Facebook implementation in App

Hi all, Does anyone hv some gud tutorials to implement facebook in our app. having a button to call fb. something like dat. w8ing curiously for a reply regards shisihr ...

Problem in In-App purchase-consumable model

I have created a non-consumable in-app purchase item and now I want to create a consumable in-app purchase item by which a user to buy it every time by using In-App purchase. Now what will have to change in following code in different model:- in InApp purchase manager.m: @implementation InAppPurchaseManager //@synthesize purchasable...

How to test location based iPhone application during development?

Hello all, I am currently developing a location based iPhone application. Is there any way to test the app other than taking the iPhone to different places? Thanks ...

Loading UITableView form UIView

Hi Guys, I am working on navigation based application in which i can navigate to many views starting from default UITableView which is starting view in application template. I have added another UIView and added tableView control on that UIView. I am calling that view form one of the many views on a button click. Its showing the view ...

Building drag and drop interface on iphone

I am trying to build an app which will have a bunch of cards that the user needs to drag and drop them onto specific drop zones. How would one go about detecting this and if the card is not on the drop zone then it should slide back. Any suggestions on how to structure this app? ...

EXEC_BAD_ACCESS error comes in my applicatoin in iphone

when i print dictionary i got this error.. here my dictTf is mutabledictionay.. when i m in home page i selct few fields and click find. so new view comes with the result.. now i go back and again click find without changing anything.. now comes proper.. now at this moment when i go back it shows this in the dictionay and EXEC_BAD_ACCES...

quartz 2d multiple UIViews

I want to create two UIViews in quartz 2D application. First UIView for static text, it will redraw automatically after each one second. Second UIView for animated text, it will be redrawn automatically after each .1 second. How can i create multiple Views/Layers? Is there drawRect methods will be different? ...