iphone

iPhone mapKit annotation for Current Location

Hello Im currently strugglung with annotations. how can i prevent the AnnotationLable for the blue GPS-point. (Here is an Image) - (MKAnnotationView *) mapView:(MKMapView *)mapView viewForAnnotation:(MKAnnotation *) annotation{ if (annotation == mapView.userLocation) { return nil; } the function above isnt working, and i reali...

Implement delegates for Core Data's fetched results controller or not

What advantage is there to implementing the four delegate methods: (void)controllerWillChangeContent:(NSFetchedResultsController *)controller (void)controller:(NSFetchedResultsController *)controller didChangeSection:(id )sectionInfo atIndex:(NSUInteger)sectionIndex forChangeType:(NSFetchedResultsChangeType)type (void)controller:(NSFet...

Continous readings in pickerViews.

I can get a slider to give "continuous value changes". But how would I get a UIPickerView to do the same? Is there a way? Detecting my own moves and swipes on the picker wheels? But how? ...

iPhone Bluetooth - External Device

Hi, Can I program my app to connect to a external bluetooth device other than the handset in order to send/receive data? BR ...

NSString stringWithFormat swizzled to allow missing format numbered args

Based on this SO question asked a few hours ago, I have decided to implement a swizzled method that will allow me to take a formatted NSString as the format arg into stringWithFormat, and have it not break when omitting one of the numbered arg references (%1$@, %2$@) I have it working, but this is the first copy, and seeing as this meth...

iphone webkit css animations cause flicker

This is the iphone site: http://www.thevisionairegroup.com/projects/accessorizer/site/ After you click "play now" you'll get to a game. The guns will scroll in. You can scroll the purse and accessories up and down. You can see that when you let go they snap into place. Just as that snap happens, there's a flicker that occurs. The only w...

iphone: Help with AudioToolbox Leak: Stack trace/code included here...

Part of this app is a "Scream" button that plays random screams from cast members of a TV show. I have to bang on the app quite a while to see a memory leak in Instruments, but it's there, occasionally coming up (every 45 seconds to 2 minutes.) The leak is 3.50kb when it occurs. Haven't been able to crack it for several hours. Any help ...

iphone autorotation animation

Is it possible to turn off the animation for the autorotation? I want it to rotate, but I just dont want the animation to occur (like an instant switch). ...

Having problem loading data from AppDelegate using UITableView into a flip view, loads first view but not the flip view

AppDelegate: @implementation Ripe_ProduceGuideAppDelegate -(void)applicationDidFinishLaunching:(UIApplication *)application { Greens *apricot = [[Greens alloc] init]; apricot.produceName = @"Apricot"; apricot.produceSight = @"Deep orange or yellow orange in appearance, may have red tinge, no marks or bruises. "; apricot.produceTouch ...

How can I create "glass" effect on my own UIViews?

Hi there, I'm working on an iPhone app that has some non-rectangular UI elements. Currently, I'm subclassing UIView, and in drawRect I'm using a CGPathRef to draw black border and a color-filled interior. I'd like to make these items look more like "buttons", though, so I'd like to have some of the same sort of "glass effects" that ar...

iPhone landscape navigation back action shows vertical view transition?

I have a regular UINavigationController and I push a series of UIViewController into the stack. The view transition for push controller is horizontal animation transition: [self.navigationController pushViewController:controller animated:YES]; However, when I press the Back button on the navigation bar, the view transition animation is...

iPad issue with a modal view: modal view label null after view controller is created

This is a weird issue. I have created a view controller with a nib file for my modal view. On that view there is a label, number and text view. When I create the view from the source view, I tried to set the label, but it shows that the label is null (0x0). Kinda weird... Any suggestions? Now lets look at the code (I put all of the ...

Displaying Map ONLY when the button is clicked in Xcode

Hi, I am developing an iPhone application using XCode and I am kinda stuck with the functionality described in the subject of this post. I want the map(using MapKit) to only load and display after I click a button. So, what code should I have under that my "(IBAction) showMap" function? Whatever I could find online talks about unhidin...

iPhone or Android apps that use SMS based authentication?

What are some iPhone or Android applications that use SMS as their primary means of user authentication? I'm interested to see such apps in action. SMS-auth seems like a natural approach that is well-situated to mobile contexts. The basic workflow is: to sign up, a user provides a phone number; the app calls a backend webservice which ...

How should I structure my iPhone OpenGL ES 1.1 game?

I am building an iPhone OpenGL ES 1.1 game. I am using the OpenGL ES template provided by xcode. I am only using the ES1Renderer. I've coded some basic touch actions the user can take, and I've begun to think about the overall structure of the code. All I'm really doing is using C in the ES1Renderer.m for my entire game state. I have an...

iphone quartz 2d easeoutBounce animation on text.

Scenario: I have created an app that show text randomly on iphone. After each 1 second, some 60-100 characters are drawn on screen using quartz 2d graphics. (OK thats easy). I want when the last character is shown it should be animated in easeoutBounce style. 1)How i will get the easeoutBounce effect? (You can check jquery easing plug...

iPhone How to set a clearcolor for my custom view

Hi, I am creating a custom StyleLabel by extending the UIView, which provides a link for particular type of strings. I have successfully implemented this functionality. I am using this label in TableViewCell along with UILabel.i set UILabel & StyleLabel background color is set to clearColor. UILabel works fine, but StyleLabel shows ...

Turning an iPad app into a universal app

I've created an iPad app, and want to turn it into a universal app (i.e. one app that works for iPhone and iPad). The Apple docs seem to only talk about the "Upgrade Current Target for iPad" option. Is there an option to go the other way? ...

Can I have different configuration of rows in different section of table view?

Can I have different configuration of rows in different section of table view? This method doesn't contains the section parameter: -(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath So is it possible to do differently for different sections in the same table view? ...

Launching application in landscape orientation for IPad

Hello All, Facing one issue with launching application in landscape orientation for IPad. I have developed IPhone application which later I ported to IPad. I have made setting regarding orientation in info.plist [ UISupportedInterfaceOrientations~ipad ] to support all orientation UIInterfaceOrientationPortrait , UIInterfaceOrientat...