This is very odd and I'm wondering if anyone has any thoughts?
I'm trying to scroll a UIScrollView in response to a button press on the iPad.
If I do:
CGPoint currentOff = scrollView.contentOffset;
currentOff.x+=240;
[scrollView setContentOffset:currentOff animated: NO];
The scroll view jumps to the required position as expected...
I'm playing an audio clip using a UIButton that calls a method (see code below). I'm trying to figure out how to write a statement to detect if the audio is running, and if the audio file is playing then disable/hide the UIButton.
At the moment if you keep touching the play button multiple instances of the audio clip play.
-(void) aud...
I'm working on an iPhone app which graphs a large database, accessed through core-data, in a line-chart. I'm using a tile-based approach to rendering this graph. The distance between datapoints is irregular.
Each tile uses a predicate to retrieve the data that is relevant for that tile:
NSPredicate* predicate = [NSPredicate predicat...
I am trying to listen for UIMenuController Notification in iphone sdk 3.0 .
But it seems that my notification can never get called. Here is my code:
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(menuControllerWillShow:) name:UIMenuControllerWillShowMenuNotification object:nil];
and my method
- (void)m...
Heres my analyzer leak...
I need to return and stop execution of the rest of my method, as I'm stopping the user as hes enter some text fields incorrectly.
...
Hi there, I've an application with a UITabBarController with five tabs.
Tests on real device show that switching from a tab to another, may take one or more seconds to load the views, because I also have to download some data from the Internet.
What I would like to do is to show a UIActivityIndicatorView while the view is loading, but I...
I want to access notes and calendar using native iphone app. I want to know is it possible in new iphone os? Is there any public pi for that?
...
Hi all,
I'm parsing an.ics file that includes time stamps of events like this:
20101008T230000Z
This is, as far as I understand, expressed in UTC.
Now, I want my app to display this time correctly, depending on the time zone where the iPhone user resides. So, as an example, if the user would be in London, the time would be displayed ...
Hello iOS gurus
I would like to handle the paste event in my UIViewController for my attached UITextView, so that if the pasted data is text or html it should paste the data in as normal and as it already does, but if it is something else like a image or pdf or anything, I would like to store the data locally in another way and not past...
I'm just trying to set my text textfield to the same color as the detail text label colour which seems to be the correct way to do it, seen something providing this as an answer here, but I'm getting an error, any ideas ?
txtPassword.textColor = cell.detailTextLabel.textColor;
Assertion failure in -[UITextFieldLabel setTextColor:], /S...
I have a bunch of identical CALayers that I want to reuse. Often, a few of them should disappear, and then get reused in another position within the same superlayer (half a second or so later).
What is the best way (performance-wise) to keep them while they have disappeared from the screen? setHidden:YES, or setOpacity:0, or removeFromS...
When we upload application from Xcode organizer, after we click the "Submit Application to iTunes Connect" button, is there a way to see the progress percentage?
...
Hi.
In MyappAppDelegate.m file at "application: didFinishLaunchingWithOptions:" method, I just wrote:
NSDateFormatter *df = [[NSDateFormatter alloc] init];
[df setDateFormat:@"yyyy"];
NSDate *date = [NSDate date];
NSLog(@"%@", [df stringFromDate:date]);
return;
And ran with iPhoneSimulator, console said:
2010-10-15 20:38:43.571 M...
I want to create a launch image for my app. The HIG states:
For iPhone and iPod touch create launch images that include the status bar region in the following sizes:
320 x 480 pixels
640 x 960 pixels (high resolution)
I've tried to screenshot my app within the iPhone Simulator. But here the status bar is on the screen ...
Hi!
In XCode, if I have an NSString containing a number, ie @"12345", how do I split it into an array representing component parts, ie "1", "2", "3", "4", "5"... There is a componentsSeparatedByString on the NSString object, but in this case there is no delimiter...
Any help is much appreciated!
Graham
...
Hi...,
I had successfully integrated Paypal with my iPhone application, but I got stuck over passing the Custom variable via SOAP to Pay pal using IPN Message.
Has anyone pass the Custom Variable to Pay-pal Server????I am making an application for a restaurant,user can make payment using Pay-pal server.
I need to pass the Custom vari...
i know its been asked before lots of times, but i just cant seem to get it. i have my map drawn, i have annotations added, and i would like to add disclosure buttons to the annotations.
i am adding the annotations from an array in my viewdidload method by pulling in from a text file
NSURL *dataUrl = [NSURL URLWithString:@"http://nne.ez...
Hello
I developed an asp.net web service that send an image and i want to convert the received data stream to an UIImage in my iPhone
this is a sample of what i get from the web service
R0lGODlhbQCdAOYA...KsxbcSAAOw==
thank you in advance !
...
Im using Erica Sadun's CookBook code to open a socket on the iPad and use a browser on my desktop to connect to the socket, provide a list of file (in this case audio files) and allow the user to downloand them to their desktop.
Erica's code works fine for small audio files, anything over a few MB's gives me a SigPipe Error and crashes ...
I have an Objective-C view controller class, from which I am trying to call a straight-C (not Objective-C) function. I want to pass in a string variable by reference, set its value inside the C function, and then back in my view controller I want to convert this to a normal NSString object.
Since I can't pass in an NSString object dire...