iphone

Can't write attributes int16 number in core data

I create entity Event Each entity has values1...values100 property values- indexed optional Int16 each values write 30 number Do NSString *str = [NSString stringWithFormat:@"Event", variable]; NSString *value = [NSString stringWithFormat:@"values%d", vari]; TermometrAppDelegate *app; app = (TermometrAppDelegate *)[UIApplicati...

Application Crashes when annotation bubble clicked

Hi Guys, I am creating annotations from database. But when I click on annotation to show bubble application crashes. But when I hardcode the coordinates and create placemarks on map the bubbles popup successfully. below is the code I am fetching from database and loading annotations. -(void) mapView:(MKMapView *)imnMapView didAddAnnota...

Variable UIImageView

I have a working UIImageView, but I want to change it based on a certain variable so I have this: a string called imagevariable(which holds the value of image1 which is a png resource in my project). So I have this: imageView.image = [UIImage imageWithContentsOfFile: [[NSBundle mainBundle] pathForResource:@"imagevariable" ofType:@"png"]...

Can an iphone application recieve push notifications from a custom server?

This is a very basic question on push notifications. I need to know whether an iPhone application can receive push notifications. I want them to operate as follows. User installs the application. When the application is not running, the user notices that something has changed with the application. This is indicated by the application i...

Good Core Data tutorial?

Hey, Is anyone aware of a good detailed Core Data tutorial that focuses only on using the code (i.e. no IB involvement)? I've read the CD tutorial in the Xcode docs, and watched a few podcasts, but nothing really went from ground up. Any help is appreciated. ...

What is the iPhone API or Class that does picture scrolling with the cool reflection effect?

Hi All, For example, in CNN's iPhone app, if you rotate the phone into landscape mode, it shows all the stories as pictures that you can scroll with your finger. It looks really polished with even a "reflection" effect. I've seen another app also do this, leading me to believe that it is a standard iPhone SDK API. Here is a link to a scr...

different CSS stylesheet for iPad and iPhone in universal application

I have what is essentially an offline web site embedded in a UIWebView. I've created a stylesheet to format everything nicely on the iPhone screen, but I need different formatting to take better advantage of the iPad's screen. I tried using code to simply copy a different stylesheet into place, but this involves modifying the applicatio...

Scrolling performance and UIImage drawing

I'm building a UITableView similar to iPod.app's album browsing view: http://cl.ly/2mWo I'm importing all the artists and album artworks from the iPod library on first launch. Saving everything to CoreData and getting it back into an NSFetchedResultsController. I'm reusing cell identifiers and in my cellForRowAtIndexPath: method I have ...

Swapping a view behind a Modal View from presentModalViewController

I'm attempting to create an application that has a regular view shown on start-up. It acts as a introduction view with two buttons that give the user choices to sign or register. After clicking sign in I present the form with presentModalViewController. After they finish with this I want to dismiss the modal view, and swap the introduct...

Line artifacts in mobile Safari

Safari renders black lines in between divs on my website at some scales. It is particularly bad when it breaks apart an image that is chopped in two different divs for a button or something. I can't put a BG in the parent of the two divs because they are transparent .pngs. Any solution or just deal with it? ...

How can I use OpenFeint and Facebook independently in the same iOS app?

I'm developing an iOS app that includes support for OpenFeint. OpenFeint includes support for Facebook, so if the user logs in to OpenFeint, s/he can post to Facebook. I also want to allow the user to post to Facebook if s/he chooses not to login to OpenFeint. Is there a way to do this? If so, how? ...

Why fetchedObject count whole entity - not attributes?

I try count number in (values8 for example) 1 of 100 attributes of Event And always got that count all number in all property of Event! NSFetchRequest *fetchRequests = [[NSFetchRequest alloc] init]; NSEntityDescription *entit = [NSEntityDescription entityForName:str inManagedObjectContext:app.managedObjectContext]; NSDictionary ...

Apply animation in specified UIView?

I want to make an animation like SwichView example in "Beginning iPhone development". My animation code: [UIView beginAnimations:@"View Flip" context:nil]; [UIView setAnimationDuration:1.25]; [UIView setAnimationCurve:UIViewAnimationCurveEaseInOut]; [UIView setAnimationTransition: UIViewAnimationTransitionFlipFromRi...

UINavigationController releasing bonanza

At the end of this code: UIViewController *viewController = [[UIViewController alloc] init]; UINavigationController *navigationController = [[UINavigationController alloc] initWithRootViewController:viewController]; [viewController release]; [self presentModalViewController:navigationController animated:YES]; [navigationController relea...

google map link with marker (on iphone & android)

I've tried to open Google Map application on iphone & android. From iPhone developer reference website I am able to open the native google map from link. http://maps.google.com/maps?ll=11.5558762589,104.921697935&z=15 However, I have trouble with adding a marker into the map. As in google static map, we can add markers into map. I ...

Calling fql queries from the iPhone fbconnect libraries

I started developing an iphone application in June 2010 that used the facebook API's extensively. I logged in and got a FBSession which contains the logged in user's profile id, etc. I then used the FBRequest class to make many calls using the FQL to get data. How do I call fql queries from the latest fb connect apis? ...

iPhone SDK : Is it possible to record the you talking time ?

First ,this is my friends idea ,girls always use cell phone talk too much every month they receive the billing will cost them a lot of money they ask me is there any applications to calculate how long they dial out a month or maybe can pop up a alert to notice them time is up,please hang up the phone maybe 3 mins or 5 mins (some tel...

iPhone signing conceptual question: why is Ad Hoc deployment needed?

I must be missing something conceptually here, and I'm hoping someone can set me straight. I'm not really clear why Ad Hoc deployments of iPhone applications are necessary, and why development builds can't be used instead. Specifically, I don't understand why I can't just send someone my development provisioning profile and my app, as ...

Trying to reuse variable to avoid abandoned memory

I've got a TapDetectingImageView class that is pertaining in memory after usage because I do not reuse it in my code. I change my code now to reuse it instead of re creating a new one each time. The goal is to configure that TapDetectingImageView object and put it in a view. I'll do it 8 times but with the code below, only the last one ...

How can i get WWDC10 sample code? (104. Designing Apps with Scroll Views)

i saw WWDC10 session "104, Designing Apps with Scroll Views". and i want get sample code using demo. but i can't find it. i found "ScrollViewSuite" but it's not same demo. it's not provided? ...