cocoa-touch

Animate an image view in Cocoa Touch

Hello, I need to make an image view animate it's self on and off of the screen. I want it to be when the user taps the screen the image slides up. Is there a relatively easy way to smoothly move the image view? Thanks for any help ...

Navigate to a SplitViewController

Hey all... I've been playing around with the iPad SDK looking for ways to improve my current iPhone app. I've got a couple place where I think the new "SplitView" would look pretty good. My question is if it's possible to navigate to a "SplitView" with my current navigation based application? Mainly I'm not sure how to push that SplitVi...

Have an object fade in and out of existance

Hello, I have a view that sets its hidden when the user taps the main view. I need the view to fade in and out of existence so it looks smoother than just disappearing. Heres my code so far (It's inside a touches event): if (!isShowing) { isShowing = YES; myView.hidden = YES; //Needs to fade out...

How do I draw a proper parallelogram that can be animated on iPhone?

I'm trying to do something very simple: I need some parallelograms in my program. These are attached to other objects, all of which are UIViews. It's important that I be able to animate these, since the objects they are attached to can also be animated. I've figured out how to use the transform in UIView/CALayer to do this, but the prob...

How to identify four sided polygon (not rectangle) collision detection?

I am developing 2D game for iPhone, for that I need to handle collision detection. My need is: I have two polygons, each is a four-sided polygon (not a rectangle), I need to check whether they are collided or not. ...

Accessing current track information from iTunes on iPod

Is there any iTunes API for the iPhone OS which I can use to access some information (current track, etc.) from iTunes? I looked around, but all I could find was some AppleScript and COM API. ...

How to add Scrolling to a layer in cocos2d ?

I have a text in my game which is written in cocos2d. The text moves up and down while we touch and move it up or down. The text is moving. But it is not getting to original position while touches ended. So, I wrote cade for touches ended for text to get original position. But problem is i could not read the entire text now. What I need ...

Reading Safari cookies in iPhone app

Hi, is it possible to read the cookies of Safari in an own iPhone App? ...

Core Data multi-threading

My app starts by presenting a tableview whose datasource is a Core Data SQLite store. When the app starts, a secondary thread with its own store controller and context is created to obtain updates from the web for data in the store. However, any resulting changes to the store are not notified to the fetchedresults controller (I presume b...

How can I differentiate two different touches on a layer ?

I am writing an app in cocos2d. I hava a sprite and a text in my scene. I have written two separate classes for sprite and text. And I added both of them to another class. In sprite class I have written - (void)ccTouchesEnded:(NSSet *)touches withEvent:(UIEvent *)event And in text class I have written -(void) registerWithTouchDis...

Can I divide a scene into two layers of equal sizes ?

I need to divide a scene in to two layers. So that I can write same methods for two layers. So I may get two functionalities. But can I make that ? Is there a possibility in cocos2d? Thank You ...

Updating Label on previously loaded view?

I am working on a simple app tab-bar based application that has two views. The first is the main application and the second is a simple instruction screen. What I am trying to do is update a label on that second screen as things change in the main app. Because the second screen is only simple with one label and some text I am not unloadi...

UITextView w/ Syntax Highlighting

Is there a common library, parser, etc. for Cocoa or Cocoa-Touch that can take a chunk of text and do the proper syntax highlighting? As a simple example, I'd like to have a UITextView that has C/C++ syntax highlighting. ...

URL or email address as link in UILabel

Hi, I have a UILabel tha contains a URL (ie www.google.com). Is there a way to display the label as URL so the User can tap on the URL for Safari to open it? Same question I have for a mailto item (ie [email protected]) to open mail with a new email to that address thanks in advance ...

move or center webview content

Hello, how could I center or move content loaded on a webview object programatically?? ...

Enable UIBarButtonItem if multiple UITextFields are all populated

I have 3 UITextFields in a grouped UITableView and am trying to figure out the correct logic to only have my 'Save' UIBarButtonItem enabled when none of the UITextFields are empty. I'm currently using the - (BOOL)textField:(UITextField *)textField shouldChangeCharactersInRange:(NSRange)range replacementString:(NSString *)string UITextFi...

How to make a cell on a UITableView not selectable?

I have a cell that I am inserting to the top of a UITableView. How can I make sure that when the user clicks on the cell, it doesn't show the blue selected indicator? ...

How to create clickable phone number

Outside of a UIWebView, how can I make a phone number clickable that is in say a UILabel or UIButton? ...

Load PDF into layer offscreen

Is there a way to load a PDF into a CALayer (or CATiledLayer) offscreen and then just display it when required? The solution should also support zooming at the required resolution. Update Just to clarify - I want the pdf to remain vector based. ...

how to perform integration in VB6?

i want to perform spectrum sensing in vb6 and for that purpose i need to find a command to perform integration in VB6.the integration will be of different samples of the signal whose square have been taken now all the results of squared samples need be integrated to perform energy detection.please help its urgent. ...