iphone

iPhone - UIWebView multiple locks

Hi, I receive the following error message in my debugger console: bool _WebTryThreadLock(bool), 0x7400460: Multiple locks on web thread not allowed! Please file a bug. Crashing now... This occurs when I: Load an UIViewController Load an UIWebView from within this UIViewController Then I push a second UIViewController from the first...

UIButton target size

The Human Interface Guidelines says "Create controls that are at least 29 pixels high and provide a target area that’s 44 pixels high". So I was wondering when I use an UIButtonTypeCustom with stretchable Background Image and Text, is there a way to set the target area? Just changing the buttons frame to 44 pixel stretches the backgrou...

UIView UIPinchGestureRecognizer problem

I have an UIViewController contains an UIScrollView and UIScrollView contains an UIImageView, and I have my Gesture Recognizers tap and pinch. When UIView called inside another view it becomes fullscreen, and when my UIView double tapped it hides itself and main view appears again. No problem till pinching. UIPinchGestureRecognizer not ...

I see a gap at the bottom of the subview

Basically the second view should go 20px from the top I see a gap at the bottom of the subview, I can see the bottom of the first view Link to screen shot Is there some way I can set margins or boundaries so the view can go 20px down ...

After dismissModalViewControllerAnimated the parent view is set to fullscreen

Hi. After every dismiss off a ModalViewController the parent view is set to fullscreen. Why? Before After +----------------+ +------------------+ |head | | detailview | +----------------+ | | |detailview | | | | | | | | ...

Converting md5 to base64 encode

Hi all, I have a .net code which converts a string "test" to md5Hash.This byte[] hash is then converted into base64String.Following is the snippet of .net code: MD5CryptoServiceProvider md5Hasher = new MD5CryptoServiceProvider(); UTF8Encoding encoder = new UTF8Encoding(); byte[] hash = md5Hasher.ComputeHash(encoder.GetBytes("test"));...

Build a IS-A relationship with coredata

Hi, i need to set up a IS-A relationship with coredata. I have a Page class which has the following structure PROPERTY title PROPERTY layoutType RELATIONSHIP layout Now, i have three classes: ImageLayout, TextLayout, and SlideshowLayout. I want the Page.layout relationship to refer to one of these three classes depending on the layou...

shared static function in objective-c iphone?

I need to calculate from pricing based on some business rules and I do not want to duplicate this across several ViewControllers. Coming from a .Net world I would use a static method on a class to do this. What is a similar solution in Objective-C? ...

Convert existing iOS paid app to freemium model with in-app purchase

Hi, I currently have a paid app in the store. Apple have not allowed a 'lite' version to be submitted as well, so I have no choice but to update the current paid version to a freemium (with in app purchase) model. I have the problem of not loosing functionality for v1 users that have purchased the app the first time round. Is there an...

Code from the Statically linked library not working.

I have made some changes in the static library, I don't see any difference in the code when I am debugging code. debugger is going through the new code but it's not doing anything. please help, Best wishes. ...

iPhone Ad Hoc Distribution Build does not work on 3.x Devices

We have made many Distribution Builds, so we are familiar with the daunting iPhone provisioning process. We have entered all the devices into the Provision Portal, we have downloaded all certificates, and when we distribute our BETA build, it is only working for users on iOS 4.x. This is strange behavior because it wasn't doing this be...

How do I dismiss a Modal View Controller Form Sheet in Landscape on iPad containing a UITextView?

I have a Modal View Controller presented as a Form Sheet in Landscape on an iPad. When I dismiss the view, the view jumps to a different location, as in this thread: A modal VC with a keyboard on landscape changes location when dismissed: http://stackoverflow.com/questions/2898353/modal-view-controller-with-keyboard-on-landscape-ipad-ch...

Batch insertion of Rows

Hey guys, i read about Batch insertion and deletion of rows in the apple documentation,but didnt get a clear idea of it's use. For example can i use it to add a few rows(animated) when the user taps on a row in the table,like a drop down list??Can somebody explain it to me or give a reference as to where i can find a tutorial?? ...

Maximum touch event frequency on the various iPhone/iPad devices?

What's the highest rate of touch events possible (e.g. touchesBegan or touchesMoved per second)? Does it vary between different iDevices (iPhone 3G, 3GS 4, iPad, etc) or between iPhone OSes? ...

Swipe to Delete not working

Hi, The swipe to delete functionality is not working in my table view. I have implemented the commitEditingStyle delegate and the Edit button in the navigation bar. Hence when the user clicks the edit button, the delete and add buttons show up appropriately. However, on swiping, the delete button does not appear and it seems like it doe...

Tick sound to be kept in memory. AVAudioPlayer? SystemSounds? Core Audio?

I'm trying to play a very small audio file - it's roughly 0.05s in length, and it's an uncompressed .wav file. Rgiht now, I'm using AVAudioPlayer to play the sound. I intend to play the sound with high rapidity alongside a spinner, a la The Price Is Right or Wheel of Fortune. If I instantiate the AVAudioPlayer with a loop count of 100...

Draw round-corner box

Hi, In my application I have a map, this map has a lot of annotations... but sometimes no location is found for an annotation (server couldn't find lat/lon). When this happens, I would like to draw a little box on my map with the text "Some locations could not be found" (or similar). I want this box to have round corners and to be trans...

AudioStreamBasicDescription invalid while trying to record live streaming MP3 file

i am using AudioStreamer and recording the streaming MP3 packets to a file(by creating with AudioFileCreateWithURL), file writing is fine but when playing recorded file it plays noise only for few seconds. i think this is because of wrong AudioStreamBasicDescription provided to file i am using for record and play.. thanks in advance. ...

Do I have alternatives to using NSLog to debug object values?

Is NSLog the best way to debug the value of variables during execution? I find that navigating into the object doesn't show me what I want to see and I find I have to NSLog all over my application. Is there something that I am missing? ...

How do I test if IOS device has telephone capabilities?

I want to offer phone support in my app at the press of a button for iPhone users, and display a phone number for iPad/iPod Touch users. Rather than detecting what device the user has, is there a better way to query the hardware to see if it has telephony capabilities? This would continue to work should iPad 3G one day open up for voic...