ios

ABPeoplePickerNavigationController record property encoding?

I used ABPeoplePickerNavigationController to pick phone numbers and now I have a problem with it. When I call ABRecordCopyCompositeName function on selected record it returns empty strings for russian people names. For english it works fine. What normally should I do to get person's name? ...

MFMailComposeViewController crash on addAttachementData

Hi, I have an issue with sending an e-mail with the app logs(just a few times I've encounter this - when the logs where bigger).Could someone please tell me on what should I focus to solve this situation?Because I've no idea what could cause this.The app crash when sending a log which has 264 kb and the device frozen.After restart, I wa...

Modifiying Nib file without Interface Builder

I was wondering if there is any way to directly manipulate the XIB/NIB files without the use of Interface Builder. I know its difficult but is there any way. Can you please tell me how can I do that or the internal structure or the documentations available on it? And will it be feasible or better in any other way. Regards, Vivek ...

Customised UIView compliation error message

Here is a code fragment #import "MyCustomView.h" @implementation MyCustomView -(void) drawRect:(CGRect)rect { NSLog(@"Help"); CGContextRef myContext = [[NSGraphicsContext // 1 currentContext]graphicsPort]; .... Then at 1, I encountered this error message: NSGraphicsContext undeclared (first...

Simulate No Audio Input Route in iPhone Simulator

I'm making a couple audio apps, and one snag I've run into several times is code I write for the iPhone doesn't work on the iPod Touch. When using low-level audio, having no audio input route can crash the app when initializing an audio session. Is anyone aware of how to simulate no available audio input in the iPhone simulator? EDIT...

Is there any difference between iPad 2x mode and iPhone4 Retina display (for developer)?

Graphics development for iPhone4 and old iPhones was changed in several ways: The concept of point was introduced to replace pixel. Methods of UIImage will load high resolution resource files with @2x in the file name. Scale factor was added to UIScreen, UIView, UIImage, and CALayer classes. So if we handle CGImage carefully, it's no...

how do i stop multiple uibutton pressing?

hi, imagine i have a UIView and to that i add 2 UIButton's i find that i can put a finger on one button, then, holding the first, i can touch the 2nd button with another finger. Both buttons will show their UIControlStateHighlighted images. Is there a way to stop the 2nd touch working? I thought that multipleTouchEnabled = NO was the ...

Getting iOS outlets wired in InterfaceBuilder

I'm new to developing in iOS and succesfully ran through a tutorial on how to create and connect outlets in a Mac OSX Cocoa App. However, when I try to follow the same process for my iPhone app, I keep hitting walls... (Apologies for the lengthy example- please bear with) Project A: In XCode: Create new Mac OSX Cocoa Application Cre...

How to attach Image with message via iPhone application?

I want to send message with image data. So I used MFMessageComposeViewController. But that controller provide only SMS service. So I used UIPasteBoard attached an image data. But It doesn't work, either. There are no "Paste" button created when typing messages. Attaching image at UIPasteBoard was clearly success. I think using MFMessageC...

Responding to custom key presses on the iPad?

How do I add a character to a UITextField from ASCII or Unicode character set when a custom key is pressed? Disclaimer: I've seen tons of questions here on Stack Overflow, but I haven't gotten all the information I need to make a hebrew keyboard. ...

Force autoresizingMask to apply to a UIView

I have a notification view which I'm adding to the application's window after launch, so it hovers above all other views. When the user rotates the device, the view does not autoresize like those owned by a UIViewController. Is there a way to manually ask for the view's autoresizingMask to be applied? Or, alternatively, how can I have...

Configuring conditional code in a subproject

I have a project that has a library subproject that gets imported. I have access to the source code of both the main project and the subproject. The subproject uses Core Text. Because the subproject must be used on pre and post 3.2 applications, Core Text is weak linked and all of the Core Text related code is wrapped in the logic: #...

How to add symbols from System Frameworks (e.g. UIKit) when symbolicating a crash log?

I have a crash log from my iPad app and the corresponding dSYM file, so I can use the symbolicatecrash script to add the symbols from my code. However, I'd also like to add the symbols from the System frameworks (such as UIKit, CoreFoundation, etc.). Is there a way to add those symbols also? I've noticed that the Xcode Organizer will ...

What is the suggested audio volume to design iPhone apps for?

Is there a favored audio level that one should equalize their audio assets for playback on an iOS device? Twenty, 50% or 66% of max volume? We're building a game that has a variety of sounds for alerts, sound effects and voice overs and we're trying to figure out a good baseline to tune it for. I can't seem to find any documentati...

Is TA-lib.org support on iOS on iphone?

Hello everyone, I would like to add Technical analysis support to my financial project on iphone. And I found TA-lib on www.ta-lib.org, this library supports many indicators I need. I would like to ask: Can I use ta-lib on my iphone development? And how I can do it, because this library is written in C language? I knew that Cocoa can c...

Unused variable warning on for each loop

I've got an array of NSNumber objects created thusly: myArray = [[NSMutableArray alloc] initWithObjects:[NSNumber numberWithDouble:0.0], [NSNumber numberWithDouble:0.0], [NSNumber numberWithDouble:0.0], [NSNumber numberWithDouble:0.0], [NSNumber numberWithDouble:0.0...

Function pointer in iOS?

Anybody can tell me about Function pointer in iOS? Thanks :D ...

Loading @2x images failed on iPhone4?

My code is listed below. How can I do it? UIImage *image = [UIImage imageWithContentsOfFile: [[NSBundle mainBundle] pathForResource:@"back" ofType:@"png" inDirectory:@"data/ui/button"]]; ...

iPhone: Recipient field like in mail or text app

Hi, Is there a way to get the recipient field with autocompletion like in the mail or text app for my own app? Maybe from the SDK or a framework but I couldn't find anything. I don't mean the Framework for sending mails an text from my app but only the recipient field at the top. I think it is a bit bit time consuming to build exactly ...

How to run xCode 3.2.2 project on xCode 3.2.3?

I have a iPhone project write on xCode 3.2.2 but i want run it on xCode 3.2.3! I try do it but it show me a message "error: There is no SDK with the name or path 'iphonesimulator3.1.2' ". Anybody can tell me how to run my project on xCode 3.2.3. Thanks :) ...