So, for the past few days I have been struggling to understand how to implement a simple MKMapView with some custom annotations without crashing my application in the process. Unfortunately I have been unable to determine what I'm doing wrong and am becoming increasingly frustrated in the process.
What I'm trying to accomplish should be...
I'm currently creating an iPhone web application for piano chords, and I wanted to add an option that would let the user press a Play button and play the selected chord. However, I'm not sure how to do this, or if it's even possible.
Basically, is there any way to programmatically (through Javascript) play a sound file (wav, mp3,...) in...
I'd like to a-synchronically load images for my custom MKAnnotationView; I'm already using the EGOImageView-framework (it goes very well with UITableViews), but I fail to make it work on MKMapView. Images seem to be loaded, but I cannot refresh them on the map - [myMap setNeedsDisplay] does nothing.
...
I created an iPhone project using the Core Data template. Now when I try to change my plist file to "Status bar is initially hidden = YES" I can't find that key in my options. Instead I find a lot of keys that are relevant to Core Data, keys that I've never seen before.
Anyway, I add the key "Status bar is initially hidden" myself and s...
Is there any reason that data pulled in from a plist will show in the simulator but not on my test device? Worked all day on making it work and was thrilled until I tested it on the actual device. Strange.
Thanks.
...
I need to simulate how my application will look when a user is driving around for a demo. I have a MKMapView, how can I simulate the look of a user driving around which will use the map.userLocation functionality, which obviously will not be available in the demo.
Thanks!
...
Ok, i have been buried in MAPKit for quite a while. I have dropping pins from a SQLite DB. Distance locations working, annotations working, looks great. Even my activity indicator works. Then right before I hand off the project, I'm swiping, gesturing, you name it to my cute map, works great, then BOOM! yipes!
Terminating app due to u...
Is there anyway I can look at the size of a file the application creates in bytes then store that number to use later? OR is there any way I can tell if an object in an NSArray is empty, I've tried everything, but it just doesn't work!
...
Is there any simple way to replace a UITableViewController from Xcode's "Navigation based application" with Core Data with a UIViewController containing a UITableView?
I'm looking to add things that the normal UITableViewController can't have, so I replaced it with a UIViewController, but my problem is that whenever I do replace the UIV...
I two concentric circles on the screen and I want the circle on the inside to move around while the user drags their finger around the outside of the larger circle. This means that I have two point, center of the larger circle and the point at which the user touched. How do I calculate where the center of the smaller circle should be?
...
Hi,
I'm planning to create a UIView with UIButtons and I want that UIView to add in a UIViewScroll. But my problem is that UIView is larger than the actual screen size of the phone, so I want a pinch or expand gesture to zoom in or zoom out the view. My question is how can I implement the resizing of the view including its sub views lik...
As I understand, SQLite doesn't have the math functions to properly implement the Haversine formula in straight SQL. I'm thinking this should be possible using an external function, with the implementation being in C.
The goal is to have a SQLite database in an iPhone, and to be able to sort by the distance to the user's current locati...
I can't get didAccelerate to trigger. I have the delegate implemented in my header file. I've set a breakpoint in the method:
- (void) accelerometer: (UIAccelerometer *)accelerometer didAccelerate: (UIAcceleration *)acceleration {
int i = 0;
}
I've tried it with two different apps but still nothing. Any ideas on what I'm doing ...
I have a three20 controller that is using the new sdk3 UISearchDisplayController.
I also have a model that is loaded from the network, it seems that no matter what I do the default behavior for the UISearchDisplayController is show "No Results" label.
Is there a way to make it go away and show something else?
...
I'm doing the following:
- (void) accelerometer: (UIAccelerometer *)accelerometer didAccelerate: (UIAcceleration *)acceleration {
if (self.lastAcceleration) {
double i = self.lastAcceleration.x;
It works fine until I actually tilt the phone. Then I get EXC_BAD_ACCESS on the last line. lastAcceleration is a property with a retain. ...
Hi, I have a scrollViewWith size width=320x10 and height=460.
I add 10 images of size width=320 and height=460 in scrollview with paging enabled.
Now I can scroll the from 1st image to 10th image by scrolling.
when scrollView show, it is always showed from the 1st page.
I want to show initially any random page of the scrollView, such th...
I am using fmdb for managing my database. I could not find any example for deleting a row from a table in fmdb. I tried
NSString *sqlStat=@"DELETE from tableName WHERE id=3";
FMResultSet *rs = [database executeQuery:sqlStat];
but its not working because when I checked the total number of entries in table, I am getting the sam...
So imagine this scenario:
10.00: your app pushes a message "Hello"
10.01: your app pushes a badge update with no message out the same device
What happens is that the message dissappears. So if the user didn't see it, it's gone. Is there a way to send a badge notification without clearing any previous messages? I know you can send the ...
Which method should I use in order to display a cell again in a UITableViewController?
...
I have a pretty weird problem in my iPhone app which is, I think, related to memory getting corrupted:
At one point, I need to sort an array, which I do with -[sortArrayUsingFunction].
The result is not correct unless I either allocate some memory with something like void *test = malloc(2 * sizeof( int )) before the method call or hav...