iphone

Movieplayer doenst rotate anymore when I used setControlStyleNone

I added this to my code when im initializing the movie [m_pMPmpc.moviePlayer setControlStyle:MPMovieControlStyleNone]; where m_pMPmpc is an MPMoviePlayerViewController It worked fine but then I noticed that the movie doesnt rotate anymore while playing(but the app after the movie still rotates) but it detects the orientation at the st...

sharing MACintosh?

hi, how can i create simulator only...is it possible?i know ,distribution certifcate is needed for devices. ...

Can I use facebook-connect as my user authentication?

I'm building a iPhone App, that communicates with a webserver (Java webapp) using REST (XML over http). In my prototype I used http's basic-authentication to allow access and identify the user, using username and password. Since there should be friendships and profiles in my app, I want to use facebook-connect so I don't have to implemen...

What size should apple-touch-icon.png be for iPad and iPhone 4?

Are Apple touch icons bigger than 60x60 supported, and if so, what dimensions should I use for the iPad and iPhone 4? ...

CGContextSetShadow() - shadow direction reversed between iOS 3.0 and 4.0?

I've been using CGContextSetShadowWithColor() in my Quartz drawing code on the iPhone to generate the "stomped in" look for text and other things (in drawRect: and drawLayer:inContext:). Worked perfectly, but when running the exact same code against iOS 3.2 and now iOS 4.0 I noticed that the shadows are all in the opposite direction. E....

how can i get Date of Expiry from my Barcode Scanner?

i am new in this Field.I have implemented BarCode Scanner.I have got the Proper Value of Barcode and Barcode Type.Now Is there any way to find the Date of Expiry using that value.Please help me i don't have any idea about it.Thanks in Advance.... ...

NSURLConnection SSL HTTP Basic Auth

I am unable to get a url request to do both ssl urls and basic authentication. I did check the other related questions and they dont seem to work - (BOOL)connection:(NSURLConnection *)connection canAuthenticateAgainstProtectionSpace:(NSURLProtectionSpace *)protectionSpace { // NSLog(@"We are checking protection Space!"); if([pr...

Drawing many images inside UIImageView

Hi all, i'm looking for a way to draw multiple images (downloaded from a webservice) inside a single uiimageview. So it'd go like i downloaded image #1, and i'd like to draw it inside rect (0,0,100,100) then #2 at (0,100,100,100) etc. I'd like to then be able to take the entire composition and save it as an image in camera roll. thanks i...

tablecell not getting selected

hi friends,, I am facing a problem with the group table view in editing mode... I have one grouped table view with a edit button added to the navigation item . When the table is in non editing mode i can select the table cells and the selection is shown... But when table goes in editing mode ,by pressing the edit button, i cant select t...

How UIWindow#addSubview can make memory leak?

Hello, I started to learn using Instrument, but I cannot figure it out. After I start my application, the UI shows up, I do nothing and after few seconds I can see memory leak detected: When I have a look at the second leak I can see the following stack: When I double click on the cell related to my code I can see that it is pointin...

Three20 for iPad

Hi, I have a requirement of using Three20 in my iPad project. I was wondering if the Three20 project of iPhone version is directly usable in iPad or should we wait for the this timeline to complete: http://three20.info/timeline/roadmap Are there any alternatives for Three20 in OS 3.2? Thanks, Raj ...

How get 0 and -1 in printf (buffer)? in audio recording iphone

Hi, here's my problem at hand: I need to analyze audio data in realtime to find out the amplitude of the signal I can't use the AudioQueue metering functionality because it has too much delay for detecting peaks I have studied the aurioTouch example..... however... I simply don't understand how the PCM coded buffer is converted back to...

Is it possible to change an Activitiy indicator color to Black in iphone?

Hi, I want to change an activity indicator color gray/white to black color. Is it possible to change the color to Black?. If yes, Please guide me or give some sample code. Thanks in Advance. ...

core-plot and NSDate (iPhone)

I wish to plot a line graph where the x-axis is defined as a number of days between two dates and the y-axis is a value that varies on each of the days. I can plot the y values as an NSNumber but I have no idea how to set the ranges and the markup on the x-axis. I have looked at the date example in the "examples" directory of the core-p...

Can't get rid of this warning?

I'm getting this warning "Format not a string literal and no format arguments? Any ideas? -(BOOL)isFirstPointReached{ NSString *firstPoint = [NSString stringWithFormat:[pointsToFillArray objectAtIndex:0]]; NSString *lastPoint = [NSString stringWithFormat:[pointsToFillArray lastObject]]; if([firstPoint isEqualToString:lastP...

How get raw data in printf (buffer)? in audio recording iphone

I need raw data like 0 / 1 static OSStatus recordingCallback(void *inRefCon, AudioUnitRenderActionFlags *ioActionFlags, // AudioQueueBufferRef inBuffer, const AudioTimeStamp *inTimeStamp, UInt32 inBu...

iPhone script to move,resize & cut image

my application needs to get some thumbnails. i have found some topics about resizing images proportionally but i need to do more: the user must zoom,move and cut the photo selecting a square 106*160, that will be used as thumbnail. is there any type of protocol to do that or shall I start writing a custom script? thank you all. ...

Allow only LeftLandscape and RightLandscape orientation

Hi all! How can I made my app to allow only the landscape orientation but both (left and right)? so if I rotate 180° the app will be rotate but if I rotate in portrait the app doesn't rotate? thanks ...

How to create a UIScrollView Programmatically?

Alright, so the key here is I'm not using IB at all, because the View I'm working with is created programmatically. The UIView covers the lower half the screen, and has a bunch of buttons on it. However, I want to add more buttons to the UIView, without making it any larger. To do so, I want to make a UIScrollView inside the view, whi...

I cannot seem to let my searchdisplay show what i want..

here's my code.. anyone can help? // // SearchTableViewController.m // iFood // // Created by Admin on 6/8/10. // Copyright 2010 MyCompanyName. All rights reserved. // import "SearchTableViewController.h" import "iFoodAppDelegate.h" import "Food.h" import "FoodDetailViewController.h" @implementation SearchTableViewController @...