iphone

assign text of a UIlabel to a text field

Hello, I am quite new to iphone development. I have a situation here. I have some labels which can be dragged across the screen. What I want is when any of these labels are dragged to some textfield and released over a textfiels UIlabel test is assigned to that text field. The crux in this is I have to check for a condition when UILab...

Two action methods for an UIButton; next track and seek forward:

I am creating a music player application and it need that 2 actions to be called from a single button, one to skip to next track by touch up inside event and other to fast forward the curenttrack incase of a 'long press'. I don't know which event is pointing to this long press, i thought it to be touch down, but it worked only while hold...

char * to NSData to display in UIImageView

I am getting image data in form of char * (stored on sql server). I want to convert those data to NSData to display image in UIImage view. char * data is a bytearray for source image. how can i convert char * to NSData to display to get an UIImage instance for displaying in UIImageView? Thanks.. ...

UIView Background Image and UITable View complications...

Hi Everyone, I am having a strange issue with displaying a custom image in my UIView. I have a table view that is setup displaying 4 cells, and then behind that I would like to have a custom image. Right now it is looking like this: where the tan is the background color I want, and the grayish color right next to the cells is the color ...

Change page on UIScrollView

I have a UIScrollView with 10 pages. I am able to flick between them. I also want to have 2 buttons (a back button and a next button) which when touched will go to the previous or next page. I can't seem to figure out a way to do this though. A lot of my code comes from Apple's page control sample code. Can anybody help? Thanks ...

question related to quit the application

Hi, I want to quit the application programatically? how to do it with code? generally we do it by pressing home button. ...

executeFetchRequest:error

NSError *error = nil; NSMutableArray *mutableFetchResults = [[managedObjectContext executeFetchRequest:request error:&error] mutableCopy]; if (mutableFetchResults == nil) { // Handle the error. } // Set self's events array to the mutable array, then clean up. [self setEventsArray:mutableFetchResults]; [mutableFetchResult...

iPhone maximum capacity

My iPhone app will download a large amount of data from a remote server. What is the maximum amount of data that an iPhone application can store? If you try to store too much data, what happens? ...

add text to UITextField at desired location

Hello, Hello, I am quite new to iphone development. I have a situation here. I have some labels which can be dragged across the screen. When any of these labels are dragged to some textfield and released over a textfields UIlabel test is assigned to that text field. Now the problem is this I want to assign the text of UILabel to some...

Possible to perform vertex blending (skinning) on OpenGl ES 1.1 ipod Touch?

I'm currently trying to make a simple model viewer for the iPod Touch, and I managed to render the model meshes where vertex blending is not performed (that is, mesh is attached to a single skeleton bone matrix). In cases were a mesh use weights to perform blending, is there a way to do it in the ipod Touch using OpenGL ES 1.1? thanks ...

How can I accurately time animations on an iPhone inside the normal flow of a program?

I've been using CALayer animations in my program, primarily to move around CALayers with animation on my screen. My problem is that I don't want to exit the layer-moving (card dealing, as it happens) method until all of the cards are done dealing. How can this be done cleanly? Presume that my layer-moving method is called by different m...

modal views, or maybe not?

What I need is to correctly dismiss the picker controller's modal view with all subviews (some kind of AR app) and show app's features or in other case a map, and following code gets me only a blank screen: - (id)init { ... self.cameraController = [[[UIImagePickerController alloc] init] autorelease]; self.cameraController.so...

tableview crashed when press back button of navigation controller?

the numberOfRowsInSection returns 0 when i press navigation controller's back button, but - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath is called when i put break point...application crashes ..any help please? ...

How to get month & year from NSDate?

Hi. Is there any way/ method to seperate month & year form NSDate? I just need to display current month & year? Any Example? ...

How to convert speech to text in iphone?

Hi all, I want to build an application where user when talks something on iphone it will convert into corresponding text. I heard in windows platform it is possible. Wheather this is possible in iphone ? Any API available for this ? ...

rtsp support on iPhone and how to develop application to use live streaming through RTSP

Hi All, I have a server that supports rtsp. Not through my application on iPhone I want to do live streaming using RTSP protocol. First of all whether this is supported on iPhone or not? If not can we create our own RTSP protocol and will apple allow us to put app on the app store ? Help is appreciated. Thanks Amit ...

implement touchesBegan for UITextField

Hello, Can you catch TextField events when a Touch happens? So far I didn't see the Touch event get registered to TextField. For example, * (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event { UITouch *touch = [event allTouches] anyObject; if (touch view == TextFieldView) { do somthing..... } This a dummy code what I wa...

Blurry UILabel text in accessory view of MKAnnotationView

Hello there, I'm trying to add a UILabel to an MKAnnotationView as a leftCalloutAccessoryView right after a pin got selected for the first time in the MKMapView. Adding the label is not a problem: The callout gets selected and opens, and this is when I add the label to the callout view. The callout gets automatically expanded to the lef...

Is there a way to programmatically scroll to a PDF page within a UIWebView?

It is possible to use JavaScript to set the pixel y-offset of a UIWebView, e.g.: [webView stringByEvaluatingJavaScriptFromString:[NSString stringWithFormat:@"scrollTo(0, %d)", offset]]; So is there a way to get: The pixel height of an individual page of a PDF within the web view? The size of the gap between pages? Is this informat...

Retrieve data from web-site database+how to

I have made some project When people put a keyword into UITextfield and click the button--->then my app will retrieve data from web-site database. But I have spent so much time to find out what is wrong because it did not work look at the code here: - (IBAction) btnClickMe_Clicked:(id)sender { NSString *kw = s.text; // <-----THI...