iphone

get_browser not showing ismobiledevice

get_browser() function does not display the ismobiledevice array as 1, i testing in iphone, Why it is not displaying the ismobiledevice as 1 , i have two page , form-mobile.php and form-pc.php , if user using pc means then it should redirect the page to form.pc.php , if user using mobile then it should redirect page to form-mobile....

What happen when "retain" NSArray or NSMutableArray ?

In the source codes @property(retain) NSString* str; @sythesize str; self.str = newStr; I understand actually following will happen if( str != newStr ){ [str release]; str = [newStr retain]; } So how about the case for NSArray or NSMutableArray ? Seem like it is complex,shallow copy and deep copy should be considered. ...

Error that occurs in ios4.1 (*** ERROR: FigCreateCGImageFromJPEG returned -12905. Input (null) was 499992 bytes.)!

*** ERROR: FigCreateCGImageFromJPEG returned -12905. Input (null) was 499992 bytes. I get a error in ios4.1 whenever i use the UIImagePicker [ just after taking a snap]. My code is a simple UIImagePickerController *c=[[UIImagePickerController alloc]init]; c.delegate=self; c.sourceType=UIImagePickerControllerSourceTypeCamera; [self...

Coordinates won't change when rotated Objective c

Hi, I am rotating a wheel which various subviews (UIImageViews and UIButtons) However when I ask it to display each and every centre of every subview, it is giving me the same value everytime. -(void) touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event { } -(void) touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event { ...

can we access iphone calender with ipohone sdk?

is it possible to access iphone calender with coding like can we access its entries or put new entries to it with sdk?If yes then which version of sdk have this feature ? good answers will be appreciated ...

data is null when reding from the .wav file in iphone?

I am trying to read the .wav file and give the raw data as input to the FFT algorithm.I have used the following code to read the .wav file. char ChunkID[4], Format[4], Subchunk1ID[4],Subchunk2ID[4]; int ChunkSize,Subchunk1Size, SampleRate, ByteRate,Subchunk2Size; short AudioFormat, NumChannels, BlockAlign, BitsPerSample; short *Data; /...

How to localize iPhone(monotuch) and Windows Phone 7 application altogether?

I want to build application both for Widows Phone 7 and iPhone using .net stack. As being rationale I want to avoid to double code this logic. Is it possible to use resx files in both platform for this, or are there any good viable solution so I can reuse code base on both platforms? Any good advice or best practice if anyone stoped on ...

Photo Slider Iphone

I want to make a slider just like CNN's iphone application has. http://i56.tinypic.com/15wdphg.jpg i search all over but i didn't get any help even any clue. If some one has any idea than please share it with me, so i will make this slider. Thanks ...

UITabbarController + UINavigationController, detail view with UIToolbar instead of tab bar

Hi, In my Main Window IB file I have a TabBarController and the first controller is a Navigation Controller. When I push my detail view (after pressing a cell in a table view) I want to push my detail view and display a tool bar instead of the tab bar. The problem is that when I try tabBar.hidden = visible; in my detail view contro...

NSMutableArray populated but data lost somehow

I start process of getting data from viewDidLoad and populate NSMutableArray with that data. But when I want to populate UIPicker I cant because there is no more data in that array. How did I lost that??? Please help :( @synthesize activityIndicator; @synthesize pckCountries; // Implement viewDidLoad to do additional setup after loadin...

IPad videos don't play after multiple runs

I'm working on an IPad application (iOS 3.2) that plays a couple of videos using the MediaPlayer framework. After running the app for a while videos don't play anymore. The video is loaded, meaning i can buffer through it but it's started in pause mode and cannot be set to played. Each time i press play it pauses again. After restarting ...

YQL php app on iphone not parsing correctly

Ok, i have a JSON parser in my iphone app and i'm trying to return rss feeds from google or yahoo to the app via this php script. can anyone see where i'm going wrong with this php, thanks. it comes back to the app as gobbledegook, not parsed at all <?php header("Content-Type: application/json"); $yqlUrl = "http://que...

Am I releasing memory correctly?

I have the following helper object: LikeHelper* likeHelper = [[LikeHelper alloc]init]; likeHelper.delegate = self; [likeHelper performLike:self.messageID]; [likeHelper release];likeHelper=nil; performLike will do some NSURLConnection stuff and then tell the delegate whether or not it was successful. #pragma mark LikeHelperDelegate Me...

Application icon image is not appears in the iPhone 2G?

Hi Friends, I am developing iphone application. It works fine in 3G and 4G version. But in 2G version, the Appicon(icon.png) is not appears in the mobile.(I have used PNG image format) In 2G version, the image is doesn't appear and the blank white screen is visible. So how can i solve this issue? Please help me out. Thanks! ...

Delegates - Functionality

I am new to iPhone development, just started learning on my own. While proceding i came up with a word Delegate. Can any one please explain them to me with an example. ...

Adding outline shadow to a UIView which is iOS 3.0 compatible

Hello guys, I have two UIViewControllers A and B and they are added as subviews in the AppDelegate with B on top of A. When a UIButton on B is tapped B slides off to the left with the following code: [UIView beginAnimations:nil context:nil]; [UIView setAnimationDuration:1.5]; [UIView setAnimationCurve:UIViewAnimationCurveEaseInOut]; [...

MPMoviePlayerController on iPhone - Streaming or progressive download ?

Hi, In my iPhone App I need to show the videos which are in Flash format. I asked the client to change the videos in iPhone compatible format. They stored the converted the video on a server and I am able to show the video using MPMoviePlayerController. Now we need to store around 25 videos (Each around 300 MB) and access them via iPh...

App icon and Default.png is not working properly in 2G iphone?

My app icon of my application is not working in 2g version of the iphone (icon.png). only appear white icon with application name and also problem in default.png. can any one help me ...

Is it possible to use a enum like UITableViewCellStyle as parameter of a method?

I want to have a enum as a parameter of my function. Would this work? (UIFont*) myMethodName:(UITableViewCellStyle) cellStyle { //... if (cellStyle == UITableViewCellStyleValue2) // ... } Then I would call the method like this way UIFont *resultFont = [self myMethodName:UITableViewCellStyleSubtitle]; Only the follow...

Count down timer

I need a count down timer starting from 5 min. ...