iphone

HttpServlerRequest in iphone

hi, i am a newb in http request. is it possible to request httpservletrequest in iphone sdk if it give me some sample code for it. Thanks in advance. ...

iphone UILabel-how to show tamil characters, is it posible to show tamil keyboard as well?

hi, I am a newbie for iphone development, i wish to show some list of tamil words in a UILable. when i try, i am getting most of the characters looking somthing wrong. Is there any easy way to show the tamil characters looking exactly like its shape? is it posible to show tamil keyboard? is iphone sdk contain tamil keyboard? ...

iPhone - How to recognize the iTunes user of my app

Hi there, there are some apps that seem to recognize the iPhone's iTunes user. I need to develop an app that supports In-App Purchase of kind "Subscription". Apple wants that my app grants the subscription in every user's device (iPhone, iPod, iPad). To do so I can build a server-side subscription system that binds the subscription with ...

How to scale graph to fit to visible space

Hi, I'm using core-plot (and the barcharts) to display financial information. My problem is that whenever I use negative values, it seems that the scale of the shown graph is wrong. I'd like the entire graph to be visible, but often only a part of the graph is shown, leaving the bars cut off and sometimes not even the x-axis visible (...

How can I change the underlying points coordinate space of the iPad in such a way, that 1 point equals 2 pixels?

How can I change the underlying points coordinate space of the iPad in such a way, that 1 point equals 2 pixels? ...

decode base64 string as UTF-8

Hi all! I am using the base64 implementation at the bottom of this post. If I use following code: NSLog(@"decoded:%@",[[[NSString alloc] initWithData:[Base64 decode:@"8fEmIzEyNDA3OyYjMTI0MTE7"] encoding:NSUTF8StringEncoding] autorelease]); I get decoded:(null) However, if I use: NSLog(@"decoded 1:%@",[[[NSString alloc] initWithDat...

navigationbar title not getting set iphone

Hi all, In my app, I'm presenting a modalviewcontroller as follows and I'm not able to change the navigationbar's title or any of its properties for that matter. fullListTopCompanies *fullListTopCompaniesInstance = [[fullListTopCompanies alloc] initWithNibName:@"fullListTopCompanies" bundle:nil]; UINavigationController *cntrol = [[UIN...

How do I animate a CorePlot plot space using UIScrollView?

I know that one can turn on scrolling in a coreplot plot space as follows: plotSpace.allowsUserInteraction = YES; but this only activates one-to-one finger to graph motion. Is it currently possible to use coreplot with a UIScrollView to achieve the elasticity effects (inertia, deceleration, bounce)? ...

how to autoplay next song in music application when first song completes playing

Hi to all, please tell me the step to autoplay song in xcode. ...

Device not receiving the Push Notification

Hi, I have created one iPhone application. I am getting Device Token. But I am not able to receive notification from APNS. Here I have given the sample code for server in PHP. I got the code (PHP) from below url: http://code.google.com/p/apns-php/ APNS.php date_default_timezone_set('Asia/Calcutta'); require_once 'ApnsPHP/Autoload.p...

MapKit in iPhone: how to show grouped annotations?

Hello, i would like to create an iPhone app that shows the map of the United States with annotations in different cities; when i zoom in a zone i would like to see annotations in single places (e.g. i see NewYork:10 pictures, then i zoom in NY and i see 6 annotations in Central Park and 4 in 5th.avenue, for example). Has anyone already...

iphone 3gs downgrade 4.1 to 4.0

Hi, I updated my iphone OS with 4.1 version. Is there a way to downgrade the OS to 4.0. Please help. Mahesh ...

How to get Control back from NSOperationQueue

Hi Friends, Can you please tell me How can I get Control back from NSOperationQueue Following is my real question which I asked earlier: Hi friends , I made an app which plays the song on clicking on the image of artist.(see image attached). Each artist image is implemented on button and on clicking this button, a function is being cal...

Dismiss / Present Modal View Controller - Memory ?

Hi all, When you dismiss a modal view controller is that view controller object destroyed ? Also if you represent the same view controller again does it load from fresh - e.g is the "view did load" and "init" method called ? ...

Best way to spell check a plist?

Hi there I've got about 400 different NSString entries in my plist file. I want to spell check them. At the moment I'm having to go through, expand each entry (there's a huge amount) and select the text then do a spell check (Cmd + ;). I really need to spell check the whole thing at once, like you would in a word document, or an excel ...

CATiledLayer : Sample code

Hello All, I need to load the higher resolution image in UIImageView. After going through approaches seems like,If we load higher resolution images memory usage goes huge [ width * height * 4 ] So to overcome this, need to implement CATiledLayer to support higher ones. Referred PhotoScroller app,but they are using images from resource a...

UiTabViewControllers+UINavigationControllers+UIViewControllers Orientation

I have a UITabViewController application with 4 tabs and each tab with a UINavigationController, each with a UItableView. When a row is clicked it navigates to another view. I would like to support Landscape Orientation only for a certain UIViewController and not in any other view. When I set "return YES" on each UINavigationcontrollers ...

Cocoa Touch: are dynamically XML-defined views possible?

Hi all, first post. Been an iPhone developer intern for about five weeks now. I've read a lot of introductory Apress material, but please take it easy if I make some vocabulary violations. So far I've been able to find answers by searching and lurking. However I now have a task for which I can find little relevant information. My iPhone...

distanceFromLocation - Total Distance not being calculated correctly

Hello I trying to calculate the total distance travelled and output it to the View Controller, but the results are not as expected. Code is as follows: MyCLController.m - (void)locationManager:(CLLocationManager *)manager didUpdateToLocation:(CLLocation *)newLocation fromLocation:(CLLocation *)oldLocation { v...

An instance of NSFetchedResultsController requires a non-nil fetchRequest and managedObjectContext

Hi, I'm trying to use core data inside an iphone application, but when I launch the application I get this error: *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'An instance of NSFetchedResultsController requires a non-nil fetchRequest and managedObjectContext' The code is this: #import "CocktailC...