iphone

UITextField: Make it higher and position input text vertically centered

The default height of a UITextField with border style UITextBorderStyleRoundedRect is 31px. For an iPad App, I'd like to make a UITextField with a height of 60px and position the text vertically centered so that it looks good (by default the text is drawn only a few pixel below the top border of the UITextField). If i do the following.....

iPhone SDK: Rotation Transformation for UITextField

Hi, I am trying to apply a slight rotation to a UITextfield by assigning a CGAffineTransformation rotation for a few degrees. This works, and the text editing also adheres to the rotated textfield, however the text is offset within the textfield to the bottom. This increases with the angle, and with 45 degrees (M_PI/4) it is almost off ...

Xcode 4 compiler doesn't see my instance variable

Hi everyone, So I'm working on iPhone and everything is going swell. Except for the last two hours. I was editing some class, then saved and built and suddenly I had tons of errors in another class implementation file. It seems that all the errors have to do with class members (variables) because the only errors I have are "object undec...

Position of an imageView based on the volume of the volume button of the device

Hi I want to position an imageView based on the amount of volume of the device, is it possible to obtain how much sound volume the device (iphone) is actually set to? ...

Setting up contracts for Paid App ?

Hello, I'm trying to setup a contract in iTunes Connect, but all I have is the free contract. I don't have the option to setup a new contract. Anyone any ideas why ? Stephen ...

CoreData or Individual Files (iOS)

Hi guys, I've got a little conundrum: would it be better to use direct file management, or a CoreData SQLite database? Here's my scenario: I have a bunch of 'user' objects, each with a list of 'post' objects. This is easily done in CoreData, and would be great - however, the 'post' objects are downloaded from a web server, and they ea...

How to call webview in my application that changes automatically

Hi all, I have created music application that have more than 20 songs in it.i want to add web view on top my front page that changes continuously within a specific time interval to display other music application and when the clicks it,it should connect to i-tunes store from where the user can download the application. Please help me in ...

Can you perform/animate 2transforms on a layer at the same time?

[UIView beginAnimations:@"trans" context:nil]; [UIView setAnimationDelegate:self]; [UIView setAnimationDidStopSelector:@selector(moveCardToSide)]; [UIView setAnimationDuration:1.0]; CGRect frame = playersCard.view.layer.frame; frame.origin.x = -30; playersCard.view.layer.frame = frame; playersCard.view.layer.transform = CATrans...

Send an event to call a method between two classes

How can I invoke a method in a class only after verifying a condition in another method of another class in my iPhone app? Any ideas? Thanks, Andrea edit 3 //class1 //Class1.m @implementation Class1 { .... [class2 method1:@"file1.xml"]; [class2 method1:@"file2.xml"]; [class2 method1:@"file3.xml"]; } …...

Button event handling in ResponderChain

Hi, I've got a simple view with an UIButton on it. In my ViewController, TouchesBegan catches all touches as expected, just the button-hit doesn't do anything (besides flashing nicely blue ^^). I'm asking to clarify, I'm aware, that I could (and probably should) link the button to an action. But shouldn't the button fire a touch-event a...

UIViewAnimationTransitionCurlDown on UIImageView?

Hi there I was messing with UIView animations and I found the setAnimationTransition method which takes certain constants. One of them is UIViewAnimationTransitionCurlDown. I was wondering if this type of transition was possible on a UIImage view and how would I go about implementing it? Thanks Tom ...

email in iphone appears as jibberish

i'm using phpmailer to send myself notifications on email. the email is in html and the body contains hebrew characters. on my mac the email looks fine but on the iphone it appears as jibberish. i tried every possible combination of encoding header both on the html head tag and as a property of the phpmailer but no luck. any ideas? t...

Change the background color of the magnifying glass of cut/copy selection on iPhone?

Hello, is there any way to change the background of the magnifying glass of cut/copy selection on iPhone? I've got white text in a transparent webview and under the webview there is an imageview with a pretty dark image, if I select the text for copy I can't see almost nothing. Regards, Andrea ...

Xcode compile errors from .pch? (iOS)

While making changes to an iPhone app I saved and compiled; got the errors below... undid everything and I am now stuck with these errors. I've tried cleaning the build, copying the files out of this folder, tried building on another machine. Nothing I can think of solves it, the change I made was to the .xib file; I removed the IBOutlet...

Strange black square when loading Facebook Connect for iPhone

Hey all, I've been playing with Facebook Connect for iPhone recently and got it working great. Except for one thing. As you can see in the image (which shows just before loading the log in screen), there is a hideous black area on the right hand side. Do anyone know why this happens and how to fix it? I can only think that I may have t...

iPhone Application Loader

Hello, I've downloaded the iPhone Application Loader and installed it, installation was successful, but no icon appears in my Utilities folder as expected. Where is the Application Loader installed ? Regards, Stephen ...

displaying an image in secondviewcontroller

Hi!! Am new to this forum and also new to IPhone development. Following is the issue: I have two views named firstviewcontroller and secondviewcontroller which has different xib files. I choose a picture through the UIImagePickerController interface from the Photo Library, I was trying to display the chosen image in the second view. [co...

XCode and recent iOS SDK

I am currently using XCode 3.2.2 and iOS SDK 3.2. With these I can produce binary which works on iPhone 3.1.3. If I upgrade to XCode 3.2.4 and iOS 4.1, would I still be able to build binaries for iPhone 3.1.3 device? If no, can I install both, or it's tricky? ...

iphone link error

hi, i got this link error when i tried to install my app to device: ldr 12-bit displacement out of range (4628 max +/-4096) in _ABAddressBookCreate$stub in _ABAddressBookCreate$stub from collect2: ld returned 1 exit status how can i solve this? in simulator there is no error. i search everywhere, there is no "ABAddressBookCreate...

handle multiple url for iphone

Hello friends Recently I am working with xml parsing function for iphone. I am viewing thumbnail image in my uitableviewcell through webservice. Its working perfect. Now I got requirement like that....in webservice there are two urls for images. In case url1 could not retrive image or couldnt connect, then image should be displayed by...