iphone

Javascript, Smartphone detection for videos?

If there's a better way I am all for it. But I wanna detect a smartphone user on my site. Whether they be a webOS, Android, or iPhone OS phone. I have a flash video on my site, but when I detect a smartphone users I want it to be a HTML5 video on the site instead. ...

Hidding UINavigationItem

Hi All, Is there a possible way to hide UINavigationItem , that is leftBarButtonItem and rightBarButtonItem. I know we can hide back button, but wanned to hide UINavigationItem. Any alternate ways, to do this. ...

iphone Application Development

In my project there has been a issue....Actually i have got the JSON Response of the Cart Informatio from server...and i can able to parse through it....but my problem is that since i want to display more datas....and also the datas are addd dynamically....can u tell me how to add controls dynamicallly .....and give some suggestions and ...

Back Button Animation in Navigation Controller

CATransitions can be used to animate transitions in Navigation Controllers when drilling down. However when using Back button og Navigation Controller (going back up) animation is still slide out. Does anyone know how to attach CATransition to the Back button of Navigation Controller? thanks. Code used to animate when "drilling down": ...

Objective C version of explode()?

If I want to explode a string by parts in PHP into an array, I have the nifty explode() function where I just do the following $mystring = "HI:THERE:HOW"; $stringarray = explode(":", $mystring); And I get $stringarray = ( [0] = "HI" [1] = "THERE" [2] = "HOW" ); Is there a similar function in Objective C that explodes a string...

Next and previous button like mail application in iPhone

Hi All, How to create next and previous button in navigation bar like in mail application in iphone. ...

iPhone Core Data Lightweight Migration Cocoa error 134130: Can't find model for source store

Folks, Lightweight migration is failing for me 100% of the time on this line: [persistentStoreCoordinator addPersistentStoreWithType:NSSQLiteStoreType configuration:nil URL:storeUrl options:options error:&error] with the error: Error: Error Domain=NSCocoaErrorDomain Code=134130 UserInfo=0x4fbff20 "Operation could not be completed. ...

iPhone SDK Audio Mixer

What I need to do is be able to mix 4 channels of audio (not from a live source, just prerecorded audio files in the app bundle), and change their volumes individually, in real time, preferably with MP3s. What's the best/correct road for me to take, regarding all the various sound APIs for the iPhone? Thanks! ...

objective-c : iphone programming error with localization

hi, i had a gps into my application that worked well for a time and now he is not working anymore and this is why it says in the console : /SourceCache/ProtocolBuffer/ProtocolBuffer-38/Runtime/PBRequester.m:660 server returned error: 503 ...

In Objective-C, when should I use class methods and when should I use instance methods?

What is the difference between class and instance methods in Objective-C and when should I use each of them? ...

Splash Screen in iphone

I have use splash screen in my application.But splash screen appears only when application is run from xcode and don not appears when launch directly from simulator. Please help me. Thanks. ...

How to integrate twitter,facebook into iPhone app ?

I want to put facebook,twitter,flickr into my iPhone app, so that users can easily login in and post message from my app easily. Put the question here is to get some clues or existing works for this purpose. After searching, I get some related works here http://code.google.com/p/iphone-facebook-twitter-connect-easy-integration-tool/ ...

UITableView Not Scrolling With UISearchBar

What I want to achieve is a UISearchBar that moves up and covers the UINavBar, and contains a cancel button on the right of it. All goes well, until I use the following line of code: searchDC = [[[UISearchDisplayController alloc] initWithSearchBar:searchBar contentsController:self] autorelease]; What ends up happening is the UITableVi...

how to load an .epub into iphone programatically

how to load an .epub extension file on to iphone through programming Thanks in advance ...

How to know when the playControllerBar of moviePlayer will be dismiss?

Hi,as the title,when i play movie using moviePlayer I want to know when the playControllerBar will be dismiss,so that i can control my view added in moviePlayer . Is there anyone know that? Tell me ,thanks . ...

Cocos2d-iphone,not calling dealloc when replacing scene

This is a simplified version of the problem I'm facing now. I've made 2 empty CCScene 1 & 2 and added CCLayer 1 & 2 onto their respective scene. I also added an touches function to switch from scene 1 to scene 2 using CCDirector's replacescene. However, dealloc was never called during the replace scene. // scene & layer 2 are exactly t...

360° rotation of camera in opengl scene (iphone)

Hi everyone, is it possible to rotate the camera in an opengl scene slowly around? e.g. 360 °? Do I just have to code something with a if-loop? and change the parameter of rotate3f(i, 0, 0, 1); i would be from 1 - 360. Is this the correct way to do this? I want tohead to the point where the camera can be rotated with the angle comin...

Enhance appearance of UINavigationBar

I would like to know how to enrich the appearance of controls such as UINavigationBar, UITabBar, UIToolBar, back-buttons to make them look more 'physical'. I made some tricks with custom views sliding in and out with a nice image in it but what I want is to customize those standards controls so they look like in those amazing apps Apple ...

SEL as a instance property or as static variable

Hi friends.. I want to keep track of a callback method in one of my class instance... so that i can call this method later on. How can i do this ..? i thought of storing the reference of call back method in one of the instance variable(SEL datatype). if i am using SEL as the datatype what attributes should i give for the @property...or ...

TTTextBarController character count

Hi all, i am using TTTextBarController from Three20 library. i want to count the number of characters,which user going to write in this control. And have to limit maximum number of character to 500. User should not exceed than the 500 characters. How can i achieve this. Regards ...