How to send email when a link is clicked?
In my iPhone application I had an email address. If anyone touches touches that link an email should send to that email address. Is there any way for doing this? Anyone please help.. ...
In my iPhone application I had an email address. If anyone touches touches that link an email should send to that email address. Is there any way for doing this? Anyone please help.. ...
I was leak-testing my current project and I'm stumped. I've been browsing like crazy and tried everything except chicken sacrifice. I just created a tiny toy project app from scratch and I can duplicate the leak in there. So either UIWebView has a leak or I'm doing something really silly. Essentially, it boils down to a loadRequest: cal...
I had an image in image in my iPhone application. The text in the image is not readable as it is very small. How can I zoom it at run time? Anyone please help.. ...
In this program when I debug, it is showing the nil for fileNameString. I could not understand what is the problem. Please help me ? @implementation fromFileRead1 NSString *fileNameString; -(id)init { if( (self = [super init]) ) { fileNameString = [[NSString alloc] initWithContentsOfFile: @"enemyDetails.rtf" encoding:N...
Hi all, can you just help me turning off the bounce in the UIWebView. Because when we over scroll it it displays the unnecessary space with the grayish back ground. Thanks in advance. ...
AVAudioPlayer *myExampleSound; NSString *myExamplePath = [[NSBundle mainBundle] pathForResource:@"myaudiofile" ofType:@"caf"]; myExampleSound =[[AVAudioPlayer alloc] initWithContentsOfURL:[NSURL fileURLWithPath:myExamplePath] error:NULL]; myExampleSound.delegate = self; [myExampleSound play]; How can I play myExampleSound such that...
I am currently working with the iPhone SDK. I have a NSTimer that changes the background image of a UIButton. Once this is complete, it will trigger the same action again (reset the NSTimer) for a predetermined number of times. My problem is that if my NSTimer is set to execute more than once per second. (0.75, say) The background imag...
I was just wondering which approach is better to hide keyboard in iphone application 1> Implement - (IBAction) doneButtonOnKeyboardPressed: (id)sender { } Method on Textfield 's Did End On Exit Event OR In Textfield implement this -(BOOL)textFieldShouldReturn:(UITextField *)theTextField { [txtName resignFirstResponder]; retu...
There are three UIView *view1,view2 , view3; Now, view1 have to be shown at both of view2 and view3 at the same time. But as usually, one view could be insert at only one view... Is there any method to insert one view at two different view ? ...
Hi experts, Can we add an view to the splash screen in iphone?. I have a default.png file in my resources directory but when the splash screen pops up i want to display an text on the splash screen image is it possible in code. ...
I used, for(id value in values) to get the value from an NSArray. Now I want to store it in 2 dimensional float array[][]. When I try to assign the values to array it is giving error:incompatible types in assignment. I tried to cast the value but I got error: pointer value used where a floating point value was expected. I need to stor...
I have a table view controller with multiple UISwitch controls in them. I set the delegate to the table view controller with the same action for all switches. I need to be able to determine what switch was changed, so I create an array of strings that contains the name of each switch. The indexes in the array will be put in the tag prope...
I am trying to create an animated spinning image. This is all fine and I am using CABasicAnimation as described in this thread http://stackoverflow.com/questions/486609/how-can-i-use-animation-in-cocos2d My problem is that I want to spin the image more than once a random number of times and I want to spin it from it's last position. At ...
I am trying to disable the automated sleeping of iPhone for certain period in my app. Used [[UIApplication sharedApplication] setIdleTimerDisabled:YES] which works fine as long as I play no music. But when I play music the Idle Timer seems to get reactivated. I have tried all kinds of tricks from NSTimer firing silent sounds every 10 ...
If I declare a variable within a block (see below) is there a way to specify that its visible outside the block if need be? if(turbine_RPM > 0) { int intResult = [sensorNumber:1]; NSNumber *result = [NSNumber numberWithInt:intResult]; } return result; or is the way just to declare outside the block scope? NSNumber *result = n...
Is there a place (or flag) in Xcode for files that you don't want to compile? There are some classes that are/may become part of a project but currently won't compile. The main project doesn't link to them but Xcode still tries to compile them. Is there a way to prevent blocking the rest of project from compiling until these new Classes ...
I have a UITextView and a WebView side by side and I would like to add a drop shadow to both. This is an iPad app, so they rotate, thus an ImageView under them probably would not work. Any ideas? ...
I am loading an HTML page that has a form. I would like to be able to dismiss the keyboard when the user clicks on GO or if he clicks on the SUBMIT button on the HTML page. If the user decides he doesn't want to fill out the form, I also need a way to dismiss the keyboard. Not sure how to do this. ...
Is it possible to draw a gradient in a path on the iPhone? I'm looking for a replacement of the mac os x method -drawInBezierPath:(NSBezierPath *)path relativeCenterPosition:(NSPoint)relativeCenterPosition of NSGradient. ...
When I look at an NSDate value in the debugger, I get something like this: 1.4.2010 22:01:47 +0100 I don't get it what this +0100 is good for. Sometimes it is +0200. Is that supposed to be the time zone or something like that? What's it exactly? How does it affect the "since reference date" value? ...