iphone

Memory Leak in Dismissing Modal View Controller

In controller named controller1, I am pushing a modal view controller AddConversationViewController *addController = [[AddConversationViewController alloc] initWithNibName:@"AddConversationViewController" bundle:nil]; //addController.delegate = self; UINavigationController *navigationController = [[UINavigationController al...

storing in coredata from webservices.

Hello everybody. can nybody give me an example which will explain the process of storing the data in coredata which is received from webservice. i dont want to use sqlite DB. perhaps a link which demonstrates this kind of example. ...

Program not working when running from Instruments

I had a bunch of leaks reported by instruments when I ran my app in the simulator using instruments. The leaks reported didn't make much sense to me, so I wanted to try on the device. But when I started from instruments it was either unresponsive (it didn't react to touches, I could only press home to quit) or didn't even start just a bl...

Customize UIBarbuttonitem with Background Images

Hi guys, I have added an instance of UIToolbar and buttons on top of it . Each button's belongs to the class of UIBarButtonItem. My Requirement is that each button has a customized layout , i dont want to use the native button styles provided by Apple. So i had 3 options in Interface Builder ( Plain , Bordered , Done ). I have selecte...

iPhone - Handle touch slide in a UIViewController

Hi, I'd like to handle touches (horizontal slide in particular) in a UIViewController subclass I did, but the problem is the controller's view contains a UIScrollView which covers the whole screen, so "touchesBegan:" and "touchesEnded:" events are never called in my controller. The scrollview only scrolls vertically. What would be the ...

SHA256 key generator in iphone

Hi friends, I want to generate a key using SHA256 with N number of iterations. They input should be my "password" + "random number" I have seen the Crypto sample provided by apple but it seems it doesn't provide my requirement(or might be possible I didnt get it properly). I have gone through below link as well but is doesnt have met...

how to read particular page from the pdf in to the webview?

I have implemented pdf viewvwe application in which i want to load selected pages from the pdf how it possible.I have seen one aplication IBook in appstore.In that same functionality implemnted.I dont know how its implemnted.So please give me idea about that. ...

size of Images in tableviewcell

hi Can any one tell me the standard size of the Images that would appear on the left side of a TableView Cell. ...

How to access iPhone Safari History in an App?

Hi Friends, Is there any way to access History of iPhone Safari? Regards, krishnan ...

iphone sdk - stringByEvaluatingJavaScriptFromString causing EXC_BAD_ACCESS

Hi, in my tab bar app where memory is getting low: (void)webViewDidFinishLoad:(UIWebView *)webView { pageText = [NSString stringWithFormat:[webView stringByEvaluatingJavaScriptFromString:@"document.body.innerHTML"]]; The pageText line is causing a crash. If I comment out this line then there is no crash and I don't thin...

how can i know the name of my iPhone programatically

i have connected two iPhones via bluetooth programatically.Now i want to know the name of the device that i am connected to and the name of my device both programatically.Can anybody help me with this? ...

Upgrading to Xcode 3.2.3 and iPhone SDK 4

Now that this is out of beta I would like to upgrade. I currently have Xcode 3.2.2 installed along the w/ iPhone 3.0 SDKs (3.0, 3.1, 3.1.2, 3.1.3, 3.2). If I install Xcode 3.2.3 and iPhone SDK 4 will I still be able to build against the 3.0 SDKs by simply selecting it from the active SDK list? Thanks! ...

Detect the specific iPhone/iPod touch model in Javascript

I am developing a website for Apple i* devices which uses HTML5 webkit features like transitions but I want to disable some of the fancy stuff for older/slower iPhone models like iPhone < 3GS and iPod touch < 3rd Gen because on those devices the transitions are too slow. Is there a way to detect the exact model (not just the OS/User Age...

Corelocation Problem

I am developing an application which computes the distance travelled by the user.I am using CLLocationManager class to do so.But i am getting the cached data initially and also the distance variable is increasing at a sudden rate.please help me out ...i have used the follwoing code.... Note:distance is a static var. here - (void)vie...

Support iOS4 fast app switching, but also support iOS 3.1?

I am interested in adding basic multitasking support to my iPhone app (i.e., fast app switcing), but also continue to support users on older iPhones and iPods who cannot install iOS4. Is there a good way to do this? I have heard that using respondsToSelector:, I can determine whether new methods are supported (and thus whether the user h...

Bulk generating iTunes music links

Does anyone know of a way to generate links to the iTunes store in bulk? I have the Artist/Album/Song info for a couple hundred songs and would like to avoid using Apple's Link Maker as that is a manual process. The best I've seen so far is to make urls that goto itunes search feature. ie http://itunes.com/artist/album ...

What does this LLVM 1.5 warning mean? "protocol qualifiers without 'id' is archaic"

I've just tried compiling an iOS project using the the LLVM 1.5 compiler (included in XCode 3.2.3), and I got a lot of new warnings, including several like this: protocol qualifiers without 'id' is archaic For instance, this happens on lines like this: - (id)initWithContext:(NSManagedObjectContext *)context coordinator:(NSP...

[iPhone app] UIButton : managing dynamic creation and touch events

Hello, I'm currently dynamically creating UIButton objects in my view. I have an NSMutableArray containing information about them (id - label). I then create my view objects by doing a for iteration on my MutableArray. I'm trying to use this code on my buttons to catch touche events : [myButton addTarget:self action:@selector(select...

iPhone: localization / internationalization default strings file

I currently have two supported languages: English and Spanish. Thus I have two main.strings files for each language. One in en.lproj and one in es.lproj. What I want now is that the English main.strings is the default file if a user with a locale other than en or es arrives at the application, e.g. de or fr. I know I can set it manuall...

@property for delegate?

A quick question if I may, can anyone explain what I am missing below, I was assuming the 3rd one with the would work? @interface ... // These work @property(assign) SomeClass *someDelegate; @property(assign) id someDelegate; // This gives warning @property(assign) id <SomeClassDelegate> someDelegate; . @implementation ... @synt...