iphone

Data decompression on iPhone with gZip

Hello friends, I am using socket connection to get data from the server. Socket stream is compressed with gzip format. Now at iPhone side I am using this code to decompress it. But unfortunately I am getting Null string. Actually Data is compressed and then encoded. I am decoding my data and then trying to decompress it. (I have veri...

Iphone SDK dismissing Modal ViewControllers on ipad by clicking outside of it

Hello, I want to dismiss a FormSheetPresentation modal view controller when the user taps outside the modal view...I have seen a bunch of apps doing this (ebay on ipad for example) but i cant figure out how since the underneath views are disabled from touches when modal views are displayed like this (are they presenting it as a popover ...

Suppressing NSLog statements for release?

Possible Duplicate: Do I need to disable NSLog before release Application? I wonder if someone could help me setup a number of NSLog statements so they print to console when executing in "Debug Mode" but don't print in "Release Mode". I understand I need to add something like DEBUG = 1 to the debug config in Xcode but I can't ...

MapKit Pin drop

Hy, I'm new to iPhone development, and I wanna make an application with map that will have few pins in it.. Can someone pleeease just add one or two pins in my project so that I can see how to do that.. I've tried to do that with few tutorials, but I dont get it where to put the code.. =/ Here's the link where you can download my projec...

Data storing in plist works in simulaor but not in device.

I am new to iphone development.I have created plist such as from my previous post. It works well in simulator but not in device.Please help me out.Thanks. EDIT:i am getting the saved value from the plist and checking for the condition.When i use simulator it works but not in device. ...

Is Appcelerator Titanium now banned on the iPhone?

This question has been answered quite clearly for MonoTouch here: http://stackoverflow.com/questions/2604033/is-monotouch-now-banned-on-the-iphone But what about Appcelerator Titanium? The new TOS from Apple and their iPhone 4 OS: 3.3.1 — Applications may only use Documented APIs in the manner prescribed by Apple and must not use ...

IPhone SDK 4 background process for incoming call

I would like to track (run some code - or invoke function) when the user get an incoming call. for example: for every call the user receive I want to save the number, and check something during or before the call is answered (with a background process..) until now without the background processing I couldn't find a way to do this. But ...

Strange crashes on the iPad device with core graphics functions

I am getting a lot of strange EXC_BAD_ACCESS crashes on the iPad that only happen on the device and not in the simulator. I am assuming that they are somehow memory related, but I am not sure. They all happen with image context related functions. One strange example is using CGImageCreateWithImageInRect. For example, if i run through a ...

How can I intercept the StoreKit "buy dialog" to make a MBProgressHUD / UIProgressView show up correctly and at the right times?

I'm programming StoreKit into my iPhone app. I can't seem to be able to intercept the buy item dialog wait time either before or after pressing the button to purchase the item. Pretty much what I want is an indicator on the screen before the buy dialog appears and after, but before the purchased item is unlocked. I don't want my users b...

What developer conferences/code camps would one go for mobile development?

I maintain and develop on the Windows Mobile platform. I know the market is changing rapidly with iPhone and Android gaining market shares. There are also app development platforms like rhomobile/titanium. Are there any platform/non platform specific mobile conferences this year? What would be some of the important/useful conference...

What exactly is the point of tableView:sectionForSectionIndexTitle:atIndex: ?

The documentation is not really clear about this. Why is the UITableViewDataSource asked to provide the section index for an index-bar section title? I mean... what use cases make this method important? When is this called and why? ...

UIView drawing problem.

Hi everyone, I have this big problem that i dont know how to fix. I have a UIView that i want to draw a scrolling background on. I am using NSTimer to update 30 frames per second but it seems to redraw one frame every 8 seconds. I am calling [self setNeedsDisplay] but it has no effect. I cant figure out why this is happening, does anyon...

Align UItextFields one below the other in interface builder

How to align 2 textfields one below the other in a tool bar and display a button on the left side (or right side) in the vertical middle of those two fields? Please see the image to know what I am talking about. http://developer.apple.com/iphone/library/documentation/userexperience/conceptual/mobilehig/art/ui_textfields.jpg ...

Securing Coredata objects

I am working on an application which has got some sensitive information. I am aware that it would be difficult for a layman to hack into iphone to get the information. If I use SQLite directly I have something called SQLite Cipher to encrypt / encode the database. Is there anyway where I can have the same way of encrypting the coredat...

Why i cannot get the frame of a UIView in order to move it? The view is defined.

I am creating a nav-based app with a view that floats at the bottom of the screen (Alpha .7 most of the time). I create it like this... // stuff to create the tabbar/nav bar. // THIS ALL WORKS... // then add it to subview. [window addSubview:tabBarController.view]; // need this last line to display the window (and tab bar controller)...

AVAudioPlayer only initializes with some files

Hi everyone, I'm having trouble playing some files with AVAudioPlayer. When I try to play a certain m4a, it works fine. It also works with an mp3 that I try. However it fails on one particular mp3 every time (15 Step, by Radiohead), regardless of the order in which I try to play them. The audio just does not play, though the view loadin...

UITableView don't react on a tap

I have a fully working grouped tableview. But when i just tap on a cell - nothing happens. willSelectRowAtIndexPath is not even being called. All outlets are set correctly, userInteractions are enabled, tableView is the only view on a page. Googling for hours made no success. Everyone has a selection feature from the begining and someone...

How to create a paint app for iPhone?

I would like to develop a MS paint like app for the iPhone. Could you guys point me to some sample or tutorials on this topic? I'm new to Objective C and Xcode. Thanks ...

iPhone - User Defaults and UIImages

Hello, I've been developing an iPhone app for the last few months. Recently I wanted to up performance and cache a few of the images that are used in the UI. The images are downloaded randomly from the web by the user so I can't add specific images to the project. I'm also already using NSUserDefaults to save other info within the app. ...

UIButton doesn't appear on UIToolbar

I have a UIToolbar where I have dragged a UIButton. When I set the button properties to Custom, and assign an image (or background image) the graphics don't appear. However, when I give it a custom text, the text will appear. Why is it that the images don't appear? ...