iphone

How does one interact with a string drawn using UIStringDrawing/CoreText

I am attempting to work on an app that highlights certain key words. For this reason, I am looking at using either CoreText or UIStringDrawing to highlight these words (As in bold/underline/italicize/color) since UITextView doesn't seem to have these facilities (And I haven't had any luck with CATextLayer). In either case I am able to s...

How to find instance by hex in XCode console?

When I bring up console after my iPhone app crashes, it often says "unrecognized selector sent to instance 0x blah blah blah." How can I find out what variable this is? Is there a way in the debugger? Is it even possible? Thanks. ...

iPhone tableview: adding new row on top without scrolling up

Hi guys, I'm wondering how to add rows to the top of tableview without roll the tableview back to the top? Just like the way Twitter did, after reloading, the tableview will be stationary. I've tried to use the following two without animation insertRowsAtIndexPaths: withRowAnimation: scrollToRowAtIndexPath: atScrollPosition:U animate...

3d map on UIMapview in iphone

I want to show 3D google map on my mapview . Is it possible if yes then give me some reference or any link for help? ...

Unit testing in Xcode doesn't work like in Apple's example

Possible Duplicate: Implementing Unit Testing on the iPhone I'm trying to follow Apple's example of how to set up unit testing... I started a new project and followed the directions. Instead of getting an error message inside the code editor (like in step 8), I get two error messages that are shown on the bottom right icon. W...

Code Resiging in iphone

We have created binaries signed with our distribution certificate. We don't want to share our source code with client and client don't want to share their certificates or any credentials with us. We have two alternatives: We will give the binaries signed with our distribution certificate to client. Now, the client will change its signin...

iphone app if backgrounded and then killed from fast access bar, on next restart will crash with SIGKILL and iphone will turn black

So the iphone app that I have created... if it is backgrounded for another app or something... And then is killed using the fast action switcher. next restart of app crashes app Iphone turns black screen with status bar at top and just gets stuck there. If I then double tap home button I can see a faint line come up to slightly show ...

Building and code signing an iPhone Application from the command line.

I want to make my iPhone Apps in Emacs now, so without using Xcode at all. How can I build and codesign my app from the command line (even through SSH)? I can't use xcodebuild as there is no Xcode project. Are there any tutorials which cover this? I want to compile them with GCC, and as soon as Developer Tools 4.0 come out, I want to co...

query regarding NSString object and memory management

I have the following piece of code: NSString *tempString = [[NSString alloc] initWithFormat:@"%d/%d/%d",day, month, year]; dateString = tempString; [tempString release]; NSLog(@"retain count for datstring and tempstring is %d and %d",[dateString retainCount],[tempString retainCount]); NSLog(@"%@ and %@",dateString, tempString) Now ...

Auto-rotation on navigationBar

Hi there, I've got a navigationBar that does not auto-resize when rotating the device anymore. So the navigationBar keeps it's portrait height of 44 pixels and does not shrink down to 32 pixels. I'm using a custom UITabBarController subclass which initializes the UINavigationControllers and adds them to it's viewControllers array. Since...

NSZombie not logging to console

Hello I am getting an EXC_BAD_ACCESS error on one of my table views. I have tried adding the NSZombieEnabled key to the executables environment variables. It seems to be working in that the screen no longer crashes, but I do not get any messages from the log to indicate what's going on What am I doing wrong? ...

parsing SOAP response with touchXML - a problem

Hi everyone, i've another problem with obj-c: i'm trying to parse this XML : here's the case: <?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"&gt;&lt;soap:Body&gt; <GetMyDas...

What are the supported image file formats for display on the iPhone?

I have an image in .jpg format. Is that readable within an iPhone application? What are all of the image file extensions that can be loaded natively within an iPhone application? ...

APIs for showing traffic in mkmapview in iphone

how can i show traffic on my mkmapview is there is any way to do it so??? plz help me ...... ...

adding uibutton to a detail view programatically

hello how is it possible to add a uibutton that can display a phone number and call that number automactically loading data from an array for each table view cell thanks. ...

how to record phone calls in iphone using proramming?

i need to know can we record phone calls in iphone. if possible then how can we do it using coding. ...

iPhone/Objective C: Can't delete a file

In my application, I let the user record a sound clip and later, if the user chooses, I want him to be able to delete it. This is the code I use: NSFileManager *fileManager = [NSFileManager defaultManager]; NSError *error; NSLog(@"File exists: %d", [fileManager fileExistsAtPath:path]); NSLog(@"Is deletable file at path...

UIViewController custom titleView crashes app

Hi, I have a navigation based iPhone app. When you press on a cell in the tableview a new UIViewController is pushed to the navigation stack. In this view controller I am setting a custom titleView in the viewDidLoad method: - (void)viewDidLoad { [super viewDidLoad]; // Setup custom navigation title [self setTitle:@"Mediap...

Redeclaring/extending typedef defined in Objective-C protocol in class conforming to protocol

I have an Objective-C protocol: typedef enum { ViewStateNone } ViewState; @protocol ViewStateable - (void)initViewState:(ViewState)viewState; - (void)setViewState:(ViewState)viewState; @end I'm using this protocol in the following class: #import "ViewStateable.h" typedef enum { ViewStateNone, ViewStateSummary, Vie...

iPhone & iPad position: fixed bottom problem

http://t1.kameleo.ch/ if you scroll down you will find a login button under the footer. If you click it, the login appears on the bottom of the screen. I have done this with a negative fixed positioning relative to the bottom of the page. This works fine in every browser, expect for mobile devices such as the iPad and the iPhone. The l...