iphone

Getting email address which the user has entered

Is it possible to get the email address which the user has entered? I know it's possible to set the email address but there is no method to get one. Is there any know solution for that? ...

Adding iPod Support to (previously) iPhone Only App

When I started on my current project, there was already an App in the App Store. This App was iPhone only. My first task was to test and build a version that also ran on an iPod Touch. About 3 weeks ago Apple removed the option on iTunes connect to set the device requirements. And sent an email out to all developers: "The App Store...

How can I detect two distinct touches

Is there a way to detect just 2 distinct touches? I just want to track the touches for my two buttons, which is a sprite, but whenever I have another touch other than my first two touches, it affects my touch with my button. Is there a way to get rid of that third touch? I wish you could help me with this problem.Thank You! ...

linking error in zxing while trying to use it in my project iphone

Hi, In My Project i need bar-code scanning. so i use zxing library but i m heaving some linking error and its getting me crazy. error is Undefined symbols: "zxing::BinaryBitmap::BinaryBitmap(zxing::Ref<zxing::Binarizer>)", referenced from: -[Decoder decode:] in Decoder.o "zxing::LuminanceSource::LuminanceSource()", reference...

How i call NSObject method in UIViewController class method?

Hi,I am the beginner in iphone development. I develop an application in which i calling some GPS related information(method name is getGPSInformation{}) in clsGPS{} is an pure NSObject class.The code is as follows, #import "clsGPS.h" -(void)getGPSInformation { locationManager = [[CLLocationManager alloc ] init]; locationManager...

Xcode: How to change Image on Touching at an Image (same Position)?

Simply, I have placed an image with the Interface Builder in a UIView. Now I want to run a method/function when I am touching that image, for example when another image should be loaded. My Code: - (void)touchesended:(NSSet*) touches withEvent:(UIEvent *)event { // UITouch *touch = [touch anyObject]; bild_1_1.image = [UIImage...

Write simple data to iphone sandbox?

I want to write a small bit of data from my app to the iphone so I can load it when the app next starts. I am going to write the data using NSCoding, but I don't know what I should be specifying as a path. I understand I would write the data to the application sandbox, just not sure how to specify that. gary ...

iphone sqlite3_column_text issue

I have a column in sqlite3 table. Column has values like 1 ½” 1 ¾” 2 ½” etc. Column has VARCHAR datatype. I am using this code. pref_HoseDiameter = [NSString stringWithUTF8String:(char *)sqlite3_column_text(compiledStatement, 2)]; Now, when I am fetching these values from database, I am getting pref_HoseDiameter string values li...

how to get Horizontal menu go up, it overlaps the header image now

another question related to my previous question My horizontal menu also goes down a few pixels on my iPhone see: wrong on the IPhone Right on the comp Does anyone know how to fix this? :) link is here: Alcmaria home page ...

button item lost when hide and unhide toolbar

i dont know, why the button are disappear after the toolbar set to hide and unhide. how can i fix it? setup a button code -(void)viewDidAppear:(BOOL)animated { //NSLog(@"viewDidAppear "); [self becomeFirstResponder]; //Create a button UIBarButtonItem *back = [[UIBarButtonItem alloc] initWithBar...

Accessing Contact Book from application.

Hi, I want to access Contact Book Features from my application (i.e) Add,Edit and Retrieving the data. Iam using the ABPeoplePickerNavigationController for getting the records from contact list but did not find to save and edit them. please suggest the solution. ...

how to insert array of data into sqlite3 database.

Hi i am new in iphone i am using sqlite3 database. and I am retrieve value from database into table view. when we insert new data into database this is show in the table view but this is not inserted database table. i am not able to find out where this value store. plz tell me ...

applicationWillTerminate, delegate or view?

I am looking to save some settings when my application exits and I am a little confused about the 2 different versions below. My feeling is that to better fit the MVC pattern I should be using the version in the viewController. I am just curious as most folks don't seem to do much in the appDelegate when that call would be used? AppDele...

objective C string Confusion

I am having code NSString *cellValue1 = [products1 objectAtIndex:indexPath.row]; when i try to print NSLog(@"cell value is %@",cellValue1); in log i am not getting anything, if i use %s, i am getting some symbols, not the string located in cellValue1. Please help me. Thanks in advance. ...

How to hide a UIView completely when changing orientation?

I want to design a view/view controler that automaticaly shows/hides a subview when in landscape orientation. I want the subview to dissapear completely and other subviews to take up its space. Using a UIViewController, I wrote code that sets the subviews' frame property and call it on: - (void)willAnimateRotationToInterfaceOrientation...

iPhone Shell - is there any?

While working on iphone security architecture, i came to know that i can run applications from other applications in iphone. referring to the following url http://iphonedevelopertips.com/cocoa/launching-other-apps-within-an-iphone-application.html for example, i can put a link in a website with following hyperlink skype:// will res...

NSMutableArray/NSMutable Dictionary not saving data on writeToFile

I have a method that is called addHighScore. When a user wants to quit the game, they can save their score out. In the resources folder, I created a highScore.plist and populated it with one entry. The structure is: item 1 (array) Name (dictionary, string) Level (dictionary, string) Score(dictionary, Number) My...

How can I get a core animation Explicit animation to behave in exactly the same way as an Implicit animation?

I wish to do some custom animation using core animation but am having the (no doubt) classic problem of animations resetting when they have completed. Of course this can be stopped by using: [animation setFillMode:kCAFillModeForwards]; [animation setRemovedOnCompletion: YES]; However, I am then left with a layer that won't respond to...

Nil string with [NSString stringWithFormat:] appears as "(null)"

I have a 'Contact' class with two properties : firstName and lastName. When I want to display a contact's full name, here is what I do: NSString *fullName = [NSString stringWithFormat:@"%@ %@", contact.firstName, contact.lastName]; But when the firstName and/or lastName is set to nil, I get a "(null)" in the fullName string. To preven...

How can I access the iPhone favorite numbers using Objective C?

Hi! I am writing an application using Objective C and I want to access the iPhone favorites numbers (the ones that can be found in the "Phone" application). I've searched among the properties specific to each contact from the Address Book and I even had a look at the Address Book database, but I couldn't identify which property or field...