iphone

Access interim points while UIView is animated

Hi, I'm animating an image in an UIImageView. This works just great with Core Animation. Now I want to attach one end of a line permanentely to the center of this UIIMageView. But with Core Animation I only get the starting point and the end point of the UIImageView. Is there a possibility to access interim points during the animation? ...

questions to scifihifi-iphone project for using the apple keychain

The scifihifi-iphone project is a wrapper for the Apple Keychain. But it not documented enough. For which iphone OS is this made? iOS 3? What does the "UI" group do? Do I need this? How to use it? Thanks in advance! ...

displaying unique strings from an array

i want to get unique strings from an array and to store those strings into another array..... give logic or sample code for this ...............thanks in advance ...

Animating UIView frame movement in animationDidStop

I have a UIView which i animate the movement of it's frame. However, now, i want to change the alpha value so its fades out as it moves... The alpha needs changing back at the end of the animation. My first thought was to use an animationDidStop Selector but, this View is only in scope where the animation block is... i.e. in the Stop sel...

upload video using FTP

Hello, I have a module which can record a video using iphone camera... and can upload that video using FTP ? I am unable to upload video file using FTP. Any ideas ? ...

Delete resources that are not there iphone

Hi all, I'm trying to import a Default.png in my application but it's not getting imported and showing me a message that it's already there whereas there's no Default.png already present in my resources. This might be because I by mistake had assigned my current working app Id and provisioning profile to an another application too sinc...

Should loaded images and text be stored in memory or retrieved each time

My app has various pins that drop onto a map and when you click on the pins you get more information about this entity. Each time you click on the entity it retrieves the information from a web service. Should I only retrieve this information once and store it in memory or should I retrieve it each time that page loads? It's a small a...

MKAnnotationView image property

Hi all I have an annotationview (draggable property is set to YES) with a cutstom image, set via the image property. When the annotation is added to the map it has the custom image. But the image turns back to the default pin when the annotation is dragged. I also tried to overwrite the image propery everytime the dragstate changes. N...

Play Mp3 from after saving it locally on iPhone

Hi friends I got a question. Here it is: I want to play an mp3 song which first will be downloaded locally and then it will be played. I have written following code. Please have a look:- NSURL *url = [NSURL URLWithString:[songURL stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding]]; NSMutableURLRequest *request = [NSMu...

Objective-C retain clarification

I'm looking at this code: NSMutableArray *controllers = [[NSMutableArray alloc] init]; for (unsigned i = 0; i < kNumberOfPages; i++) { [controllers addObject:[NSNull null]]; } self.viewControllers = controllers; [controllers release]; Later on... - (void)dealloc { [viewControllers release]; ... } I see that self.viewCon...

is there a class to get the default picture viewer in an app?

Hi there I don't want to access the images on the iphone, I want to display an image from my app, but like you view pictures in the picture album of the iphone - with all the pinch and zoom controls and such. Is this possible? I thought there might (by chance) be some class like the AVMediaPlayer class that would do this? Thanks Tom ...

Leaks when adding-removing objects to a MutableArray

Hi guys, i have a memory leak in my app. My app launches on a tableviewcontroller. i parse a json file to fill an array. Then this array is used to fill the tableview's cells. I fill my array with objects (class). I do: [tab_Demandes removeAllObjects]; for (NSDictionary *demandeD in demandes) { Demande *dem =[[Demande alloc] ini...

How to advertise a service using Bonjour across subnets?

I am familiar with the usage of Bonjour for advertising services on the "local" domain. I have worked through several examples, and I know the corresponding Cocoa classes I use for that. I am curious about how I advertise a simple Bonjour service to a different subnet. Specifically, I am trying to write a network service that runs on ...

Setting a UIImageView with swipes

I currently use a left and right arrow to switch between images, but would like to add functionality so that the user can swipe in the direction to change the image. How does the device detect a left swipe or right swipe and use that as an IBAction or similar to the button triggering execution? Is there a build in method or does it ne...

How to detect touches in status bar.

I have custom view in my application which can be scrolled by the user. This view, however, does not inherit from UIScrollView. Now I want the user to be able to scroll this view to the top, just as any other scrollable view allows. I figured that there is no direct way to do so. Google turned up one solution: http://cocoawithlove.com/2...

iphone: tab bar controller: how to call methods ?

Hi guys!, i need some help: i have several views (view xib): login, sign up, settings, and so on. i have created a project, added a tab controller and the tabs are working fine. The problem is that: we have 2 sign up 'ways' and my boss want them in two different tabs. The code is almost equal, so my idea is: instead of hav...

UILabel Setting Transparent Background Color?

I am looking to add a black label with a transparent background to my view (see below) // ADD LABEL UILabel *label = [[UILabel alloc] init]; [label setFrame:CGRectMake(124, 312, 72, 35)]; [label setText:@"Yay!"]; [label setTextAlignment:UITextAlignmentCenter]; [[self view] addSubview:label]; [label release]; When I add the label it al...

NSTimer not stopping

I have a Class with a NSTimer *myTimer; variable. At some point I do: myTimer = [NSTimer scheduledTimerWithTimeInterval:20 target:self selector:@selector(doStuff) userInfo:nil repeats: YES]; further, I have a method: - (void)doStuff { if(myTimer) { //do stuff } } and I stop my timer when the class is released through: ...

Fetch Specific Number of Random Rows from CoreData

I'm using the code below to Fetch a queried set of all rows using CoreData matching the search criteria: itemType = 1. But what I need to do is to Fetch a specific number of Random rows from the data instead. For example, instead of retrieving all 100 rows of data in which the column name dataType = 1, I need to get 25 rows randomly in w...

Interface Builder Tab Order Typing

Hi I have noticed, in one of my views in an iPad app I am building the next button on the keyboard goes through all the UITextFields from left to right down the screen. Is it possible somehow to make it go top to bottom then right, top to bottom? So say I have to two long columns of text fields, I wan to go top to bottom not left to r...