iphone-sdk-3.0

Show bounding box of UIImageView in UIView

I have written a class extending UIImageView in order to allow me dynamically generate bricks on screen. The brick is a 20x10 PNG. Here is my codes: - (id) initBrick:(NSInteger *)str x:(float)ptX y:(float)ptY { int brickIndex = arc4random() % 10 + 1; NSString *filename = [NSString stringWithFormat:@"brick%d.png", brickIndex]; UIImage ...

How To parse UITextField value from one Nib to another

How can I parse UITextField value from one Nib file to another, By initWithNibName Here is the Code for the First View -(IBAction)testbuttonPressed:(id)sender { //test.text=@"hello H R U"; detailsViewController=[[FlipsideViewController alloc] initWithNibName:@"FlipsideView" bundle:nil]; detailsViewController.address1=txtNam...

how to save slidervalue and label value in nsuserdefaults or any other efficient way?

i have a view with one slider and a label.i am showing a countdown on label and setting time on label using slider.now suppose i have started the timer so the label's value is decreasing every minute and slider's value is also decreasing.now i want that if i close my app and then reopen the timer should be already running+label's value i...

Draw a border around mkmapview,scrollview and webview .

Hello all . I am developing an iPhone application in which I have a page in which I am using scrollview mkmapview and webview all at once in the control of a segmented control. I am doing it confortablly . My question is that I want to show border or frame outside this frames. How can I do so ? ...

how to stop core animation?

i am animating a button using core animation now on a certain condition i want to stop that animation how do i stop the animation? here is the method to animate the button -(void)animateButton:(UIButton *)btnName { CABasicAnimation *pulseAnimation = [CABasicAnimation animationWithKeyPath:@"transform.scale"]; pulseAnimation.duration = ....

how to get Route directions between two points on a map to draw driving directions?

is there a way to use core location or google or some other api to provide two points on the map and get the resulting set of latitude/longitude pairs for the route? i have seen in this tutorial Drawing polyines or routes on a MKMapView that how to draw driving direction using core graphics...but in the sample code it has route.csv whic...

IPHONE: Test to see if a view is on the superview

Hi, I am about to do a [vistaX removeFromSuperview]; How do I test to see if vistaX is present on the super view before removing it? Removing a view that isn't there would lead to a crash on the application... thanks for any help. ...

iPhone Timer Picker

Is it possible to make this go as granular as seconds without having to write a custom picker? ...

which languages to include in iphone app for creating localizable for both western and eastern languages?

i am creating a iphone app which i want to localize. So which languages should i include in my app for creating localizable for both western and eastern languages? i want to know what does the western and eastern languages means? ...

Sending POST data from iphone over SSL HTTPS

Hai all, In my iphone project i need to pass the user name and password to a web server,previously i pass data using GET method and used the url with GET format (eg: localhost:8888/login?userName=admin&password=password ) but now i need to sent this as a POST data, can any one help me to find what wrong in this code below ? code i tr...

How to Prevent or Compensate For Scaling Transforms of Core Graphic Paths?

I am attempting to create a "marching ants" (an animated dashed line) selection indicator around UIView that contains a UIImageView subview. Drawing the dashed line around the perimeter of the UIView is trivial using core graphics: -(void) drawSelectedMarquee{ CGContextRef c=UIGraphicsGetCurrentContext(); CGContextSetStrokeColorW...

Giving animations when we set the visibility of a UIDatePicker

Hai all, in my iphone application, when i click a UIButton it will show a UIDatePicker (using setVisible:YES) ,is there any way to animate the DatePicker appearance,(now when the user taps it will suddenly appear in the UI) thanks in advance ...

How can you reference child entity name in a predicate for a fetch request of the parent entity?

I have the need to create a complex predicate for an abstract base object. I want to have separate predicate queries for different inheriting entities and key off the sub-entity type, the example below is what I would like to do, however, I have not been able to find a way to reference the entity name or type in the predicate. NSFetchR...

How can my server securely authenticate iPhone in-app purchase?

Look at Apple's diagram for the server purchase model. In step #9, how can the server know that it is really talking with an iPhone that is entitled to the purchase, and that Eve is not performing a replay with a dishonestly obtained receipt? The receipt may be valid, but that doesn't prove that the sender is the entitled party. Is th...

Getting started in Core Data for iPhone?

I want to implement Core Data into my iPhone app. So what is the best way to learn Core Data specifically for the iPhone? I have 4ish hours that i can devote to this today, so ideally I would be competent enough to add this (however slightly) into my app. The only way i retain data now is through NSUserDefaults, just so that when the ap...

how to Insert , overwrite audio files -Audio Editing iphone

hi , I am developing an application which does audio recording. Now I need to add a feature of editing the recorded audio file... The user should be able to play the audio file & insert recording into that.. cut unwanted audio .. I need the two basic functionalit INSERT audio & overwrite existing audio. Can Anyone please help ...

Is it possible to save the state of a timer in the User Defaults?

I have a label on which I am showing countdown timer. Now if I close my app the timer will be off and the label's text also. I know that we can save the label's text value. But how do we show the correct countdown when the app starts again. Suppose I close at 00:05:35 after 3 minutes when app is launched again the label should show 00...

How do I insert a welcome screen to my Navigation-Based Iphone App?

I am new to Iphone App develoment and I was wondering how to insert a welcome screen when my app first start up. The app is primarily navigation based. There are tables that users can drill down and see a characteristic of the item that they selected. I want there to be a welcome screen that gives two options. But I don't want this t...

.pls with SafariMobile no more works on iPhone OS 3.1.2 ?

Hello, Are you able to play a .pls with SafariMobile on iPhone OS 3.1.2 ? ex : http://www.somafm.com/startstream=groovesalad.pls Thanks Thierry ...

Any examples of creating a dial?

I'd like to create a dial with similar behavior to some of the retro phone apps. These have a circular dialer that lets you spin it around with your finger. Any ideas how that is created or some links that discuss aspects of it? ...