This should be a simple question, but I just can't seem to figure it out.
I'm trying to create my own class which will provide a simpler way of playing short sounds using the AudioToolbox framework as provided by Apple. When I import these files into my project and attempt to utilize them, they just don't seem to work. I was hoping some...
I'm displaying custom images on a map (instead of the default pins) using the code below. However, when I tap on an item (and the callout appears), the image reverts to the default red pin. How can I keep my custom image, even when the callout is displayed?
- (MKAnnotationView *) mapView:(MKMapView *)map viewForAnnotation:(id <MKAnnotat...
Any ideas on how to create a cover that has alpha 100 but is able to let a button behind it be touched, and an action to be called.
i dont want to apply the action to the cover, nor change the buttons image - as a convaluted set up is required for each one.
any ideas? what im after is effective not a see-through button, but a touch thr...
I've got a int, that is changed in a previous method, that now has to be part of the name of a button variable. For example:
int numberFromLastOne;
numberFromLastOne = 4;
I then want to get 'button4' to do something.
Could I use something like this?
[[button@"%d", numberFromLastOne] doSomething:withSomethingElse];
I've never had t...
The Google Finance API only have Java / Javascript. Is there any ideas on getting Google Finance data from iPhone using Objective C? thz u.
...
I have a scene, called testScene, it works like this:
@interface testScene : myScene {
IBOutlet UIView *subview;
IBOutlet UIView *drawingCanvasView;
IBOutlet UIButton *update;
}
- (void)updateDrawingCanvas: (id) sender;
and when the user click the button, update, it will run the updateDrawingCanvas method.
So, I have a drawingCan...
In my viewForAnnotation delegate, I create a MKAnnotationView with leftCalloutaccessory as a info button. When the info button is tapped, I want to replace it with a UIActivityIndicator. So in the calloutAccessoryTapped delegate, I wrote
view.leftCalloutaccessoryView = [UIActivityIndicator indicatorWithStyle:UIActivityIndicatorWhite];
T...
Supposing we have an Xcode iPhone project with 2 targets, is it possible to build and install both of them on the device with one click? Of course, I understand we will not be able to "build and run" both, but can we at least install them?
And to extend this concept a bit a bit: are there any scripts to achieve the same thing but with m...
This is my drawRect:
CGContextRef context = UIGraphicsGetCurrentContext();
CGContextSetLineWidth(context, 2.0);
CGContextSetStrokeColorWithColor(context, [UIColor redColor].CGColor);
CGContextMoveToPoint(context, x1, y1);
CGContextAddLineToPoint(context, x2, y2);
CGContextStrokePath(context);
If I run this code thousand times or mo...
Will it auto release when the user quit the application? or it will stay in the machine until reboot? Also, have Apple provides any tools for developer to check whether they release the object or not.
...
I have an App which launches the google Map App. The code is:
UIApplication *app = [UIApplication sharedApplication];
[app openURL:[[NSURL alloc] initWithString: @"http://maps.google.com/maps?daddr=Obere+Laube,+Konstanz,+Germany&saddr="]];
The saddr= should be the current location. I get the current location with
-(void)locatio...
Hi
I am working on an app where I need to save a part of iphone's screen shot as JPEG and then send this through email. The part of screen has some text labels, fields etc. Any ideas please on how can I save part of screen as JPEG (I am a newbie therefore any help/sample code is highly appreciated)
...
I have a UITableView which is setup in Interface Builder and connected properly to its class in Xcode. I also have a "Importer" Class which downloads and parses an RSS feed and stores the information in an NSMutableArray.
However I have verified the parsing is working properly (using breakpoints and NSlog) but no data is showing in the ...
I am using UICatalog example and trying to find whether it is possible to add a label next to a button. Please let me know how to approach this problem
...
Hi,
In UITabBar it is possible to add a standard button by clicking on the "identifier" drop down in the IB inspector. Is there way to use the same image with different text ? . Say if i have selected the downloads icon in the drop down with "Downloads" as text can i change that text to updates ?
...
Hi,
I make an App with a Map in the App and a button to change to the google.Map-App.
The code for my position is:
-(void)locationManager:(CLLocationManager *)manager didUpdateToLocation:(CLLocation *)newLocation
fromLocation:(CLLocation *)oldLocation {
float avgAccuracy = (newLocation.verticalAccuracy + newLocation.horizontalA...
So i'm making small program and it download ziped XML database file that is ~30 MB size (unziped). As I understand there is only way with such big files on iPhone, it's to use NSXMLParser. But that file is encoded with windows-1257 format and NSXMLParser does not eat files like that. What can I do? Is there a way to change file encoding ...
My app will allow users to create a personalised list of events from a large list of events. I have a table view which simply displays these events, tapping on one of them takes the user to the event details view, which has a button "add to my events".
In this detailed view I own the original event object, retrieved via an NSFetchedResu...
How would I detect a long tap (tap and hold) within a UIScrollView?
...
I have a view, that have a drawRect method, I know that this method is the only way I control the View to draw something on it. So, I try to my drawing logic in this way:
- (void)drawRect:(CGRect)rect {
//my drawing code...
}
In my view, I use the IB to link this class.
[myView setNeedsDisplay];
It works, so, I designed to have...