With the MKMapView there's an option called "Show users current location" which will automatically show a users location on the map.
I'd like to move and zoom to this location when it's found (and if it changes).
The problem is, there doesn't appear to be any method called when the user location is updated on the map, so I have nowhere...
Hi there ,
iam using AVFoundation Framework to play mp3 file ,everything works great ، i have 2 buttons and i put they together , [Play and resume with .hidden function],when user play music [play button going to hide and resume button un hide], so if the user change view , (music is playing) and back to previews view, the buttons don't ...
I've been trying to figure out what happens in the view hierarchy when methods like pushViewController:animated, presentModalViewController:animated, and tab switches in UITabBarViewController are used, as well as UIAlertView and UIActionSheet.
(Side note: I'm doing this because I need to know whether a specific UIView of my creation is...
Hi All,
I'm trying to animating across the screen a horizontal bar with a color gradient. For simplicity, I chose to make a png of the fully extended bar, assign it to a UIImageView, and (attempt to) animate resizing of it using a UIView animation. The problem is that in the "closed" state of the Image, the portion of the image showing ...
So I have a bunch of UIViews that I made programmatically and placed a bunch of content on (UIButtons, UILabels, UINavigationBars, etc.), and most of these views are going to need to actually be UIScrollViews instead.
Now keep in mind I made all these through code not the Interface Builder. What I first tried was to just change each dec...
Hi,
Is there anyway to put the iPhone into sleep mode from an app?
If yes, how can I do that?
Thanks,
Tee
...
So we want to be able to stream a video from a website.
We also want to be able to do the same with a separate audio file.
The reason why we need them to stream separately and can't integrate the two into just a video is because we need the user to be able to scrub the video however the audio should keep playing. Is there a way to get ...
So I have a UIViewController (main application controller is a TabBarController). On this there is a UINavigationBar, and a UIBarButtonItem. I'm PRETTY sure I hooked up everything correctly in the Interface Builder and that the outlet in the code is connected to the button in the .xib. It should be because the method works correctly.
No...
I create a button programmatically
button = [UIButton buttonWithType:UIButtonTypeRoundedRect];
[button addTarget:self
action:@selector(aMethod:)
forControlEvents:UIControlEventTouchDown];
[button setTitle:@"Show View" forState:UIControlStateNormal];
button.frame = CGRectMake(80.0, 210.0, 160.0, 40.0);
[view addSubview:button];
...
I am having trouble getting my modal view controllers to display properly. I have a parent view controller that is the delegate for modal view A. In modal view A I am presenting modal view B, and having the delegate dimiss modal view A.
When modal view B appears it seems to display but the screen dims, and the UI locks up, but the app d...
What Format should data be in when going into a utility app from a server? JSON, XML or something else?
Edit:
I need to tell a client to tell his web guy to build me a web service or let me do it. I need to make sure I am asking for the right thing.
...
All of a sudden, the visual design window disappeared from my Interface Builder. It is a regular UIView, has some UIImageView, UILabel, and UIButtons on it. When I open IB, I can see the document window (with File's Owner, First Responder and View in it), Library and Inspector, but the visual design window disappeared. Double click on "V...
I've got a view in my app that does pretty much everything, and I like it that way. The problem however is that it's implementing 5 or 6 different delegates, which seems a little bit messy.
My question is, does the view controller have to implement all of the delegates? or is there some way I can separate the code out into different fil...
It's either because of the fact I'm tired or because I'm doing it wrong, but for some reason I can't get it to call a method.
Here's what I'm trying to call:
-(void)newHighScore:(int)d
Which right now just does an NSLog saying "yea I'm working!"
I'm calling it like this:
[highscore newHighScore:score];
highscore is what I called ...
I've been have trouble understand this problem. If I change the variable name fifthViewController the error goes away but the view controller doesn't load.
Lost. Once again it's probably something simple.
Thanks in advance.
Here is the code:
{
FifthViewController *fifthViewController = [[FifthViewController alloc] initWithNibNam...
Hey All,
Okay, so I have a viewController method that has some elements created with interface builder and some I coded myself.
I created a view in the IB...lets call it viewOne. I created a loop that creates buttons (through code) and places them on a separate view (viewTwo). This is done in a class method. However, I want the view I...
Hi there,
I am testing my in app purchase application. While I purchase my consumable product second time with my user account in sandbox environment, it always show me a alert "You've already purchased this but it hasn't been downloaded. Tap OK to download it now.". Is there any way to skip the alert?
Thanks for any help.
...
I just tested Geolocation on Firefox 3.6 and iPhone Safari (os 3.1.3), the result is interesting, firefox is more accurate than safari. any one got idea how to make iPhone Safari result more accurate.
Testing Resul
Windows Vista Firefox 3.6: ------------- Accuracy: 150
iPhone 3G (os 3.1.3) Safari: ----------- Accuracy: 828
this i...
how can i get an offline version of the iphone development handbook?
...
I want to check to see if an array has "-" to activate a shipping method. I put "-" in since the array value will aways =2 and I need to IF ELSE by the contents. If the user doesn't not enter an address in the contents of the array looks like this:
Root Array (2items)
Item 1 String -
Item 2 String -
Here is the code for ...