iphone

iphone: creating the 'blue bubble contacts' effect in ComposeEmail?

Hi, I want to create an effect similar to the 'blue bubble tag' effect in the Compose Email Page where the recipients email address appears. I need to design a similar effect to allow users to create 'tags' for a picture.. Do I have to use Core Animation for this? Can someone please give me some pointers on where / what i need to use? ...

iPhone: NSDate convert GMT to local time

I currently have an API call returning me a date/time in the format: "2010-10-10T07:54:01.878926" ..Can I assume this is GMT? I also converted this to an NSDate object. Is there a way to use the local iPhone time to recalculate the time? ...

how to send data from iphone over wifi to application, to print message

hi, i would like to know how to do the following: step 1: how to send the following string from the iphone to a mac computer via WIFI when a user presses a button. string to be sent: "hello". step2: how to receive that string with an application i would have to create. it will be very simple. it will have no interface, except it will ...

Multiple UILabel(s) repositioning according to wordwrap.

Hi guys. I have this interface with multiple UILabels. On view loading i populate white labelled values with some data from a db. The problem is, some of that fields are potentially too long for the interface, so i'd like to compute the total height of one label once the text is word wrapped and reposition the 2 labels below (shifting t...

Does all new apps have also to work on iPad to pass the appstore approval process?

A friend of mine told me that there is a new rule to pass the appstore approval process. The app also have to work on iPad otherwise it would get rejected. I didn't find something which supports his statement. Does somebody know what is true? ...

Moving Xcode certificate to new system for iPhone Dev

In Apple's Provisioning Portal "How To" under Certificates, there is a section called "Saving your Private Key and Transferring to other Systems". Now this is what I'm doing (I have rebuilt my machine with a new HDD and therefore have access to my previous OS build) and I'm looking to backup my private key so I can install it on my new O...

ModalViewController based app crashes after 30 presentations

I have an ipad App, which has categories (tableviewcontrollers inside it) and detail views which has a webview shows info of the row on tableview. On didSelectRowAtIndexPath function of category table views i am using the code as: DetayViewController *dvc = [[DetayViewController alloc] init]; Blog *b = (Blog *)[self.blogArray objectAtI...

How to show an iPhone app on iPad with retina display graphics?

I have an iPhone app and upgraded the target for iPad in Xcode. But now, the app launches in the upper left corner of the iPad very small only. I want to scale it up to the iPad screen but then use the retina display graphics. There's a lot of code that positions the views on screen. Is there an simple way to let an iPhone app appear x2...

How to provide saparate classes for iPhone + iPad in one universal build?

Problem: In my iPhone app code, I'm positioning and animating a lot of views programmatically. For the iPad, I want to provide a completely different user interface, but also programmatically. I don't like to use Xib files. How can I make different views and view controllers and load these depending on if it's an iPad or an iPhone? What'...

create hardware for iphone to connect with external device. arduino?

hi i need to create a simple connector. I think i may need to create an arduino board that will take data from the application and then transmit them to an external device. There is a slider in the application which the user can adjust. When adjusting the slider the application will just send in values from the application to the connec...

Access to NSArray from 3 different instances of class

I have 3 different instances of a class and when a user taps a button (there are buttons for each of the instances) I want it to add the text of the button to the NSArray. But the NSArray must contain all 3 different sets of "historys" Should I be using a singleton, or just keep a reference to the NSArray as a property? ...

OpenFeint with GameCenter really that easy?

I was reading this: http://www.openfeint.com/ofdeveloper/index.php/kb/article/000089, and it seemed to make out that the implementation of GameCenter with OpenFeint was as simple as adding one plist to the project (after setting up achievements / leaderboards). But is this really the case? I've just implemented this in my project now and...

create small mac app that receives data from iphone through wifi local network

Hi, this is the first time i am creating a mac application, what i need to do is to have a simple screen. This simple plain screen will just print a string as the iphone is transmitting strings through the wifi network. This string is simply a string value of the slider being adjusted by the user as they move it up and down. so it will ...

Changing shader-code in xcode on iphone opengl es 2.0 project results in an error.

Im new to shaders and I'm trying to learn the basics. But everytime I change some code in my vertex shader it results in an error. "Validation Failed: Program is not successfully linked." Im using the standard openGL project for the iphone as a starter in Xcode ( with a 2d cube moving in y-position). From the beginning th...

Image not appearing in UIImageView

I have a UIImageView in Interface Builder connected to an outlet called imageView. The statement [imageView setImage: [UIImage imageNamed: @"xxxx.png"]]; displays an image successfully if placed in viewDidLoad, but NOT if placed in an action method in the same view controller. There's an NSLog in the action method so I know it's firing...

Scrollview is bouncing back. Intersting issue.

I have a app where in once I tap on a textfield it slides on top of keyboard. My scrollview is bouncing back when I scroll down my content. iPhone documentation says "by default, it “bounces” back when scrolling exceeds the bounds of the content." Any clue how to get rid of this? Should I increase the content size of scrollview? Pleas...

What could be the reason for the error? Please see detail showing image of error

I am keep getting this error while uploading..I have no idea what this error are and how to resolve them...my build was successful(there are some warnings) my application is tested on iOS 4.1...any help is highly appreciated. Thanks ...

App Crashing in NSURLConnection

Hi all, I am trying to figure out what is causing this crash. I have built and given the app to our testers but we cannot seem to reproduce this reliably. It just happens sometimes... Thread 0 Crashed: 0 libobjc.A.dylib 0x000027da objc_msgSend + 18 1 Foundation 0x00032896 -[NSURLConnection(NSURLCo...

Compile error trying to use CAGradientLayer

Hi, I'm trying to use CAGradientLayer and getting an unhelpful compile error. Can't figure out whats wrong. All I'm doing so far is: CAGradientLayer *gradient = [CAGradientLayer layer]; I've imported <QuartzCore/QuartzCore.h> and I'm getting the warning > _OBJC_CLASS_$CAGradientLayer referenced from: objc-class-ref-to-CAGradientL...

Empty FetchedResultsController in Core Data

I'm using core data and I have an entity defined called LogRecord. Elsewhere this is populated with objects using: LogRecord *rec = [NSEntityDescription insertNewObjectForEntityForName:@"LogRecord" inManagedObjectContext:managedObjectContext]; [rec timestampNow]; ...