iphone

conceptual question : what do performSelectorOnMainThread do?

Hello all, I just come across this strange situation . I was using the technique of lazy image loading from apple examples . when I was used the class in my application it gave me topic to learn but don't what was actually happening there . So here goes the scenario : I think everybody has seen the apple lazytableimagesloading . I...

Render layer offscreen

How can I create/prepare a CALayer offscreen, so that when the page is displayed, then all it has to do is to display the prepared layer? ...

Using UIImageViews for 'pages' in an iPhone/iPad storybook app?

I'm new to iPhone programming, and well, what seems obvious to me may seem silly to a seasoned coder. I did a few 'switching views' tutorials on Youtube, and basically, they seems to work nicely for adding pages to a storybook type app. You add a UIViewController and associated view for each page. My question is would this become insane...

iPhone: How to Display Underlined Text in a Button?

I want to display the mail ID in my view such that clicking the mail ID should open the mail composer view. I want to display the button text as underlined to show it is a hyperlink and for the button click event to call the mail composer view. At present, I am not able to show the button text underlined. I thought of placing a label a...

Customizing MFMailComposeViewController

is it possible to change the language from english to deustch for title send and cancel button and also "to","cc","Bcc". ...

Does Apple's Reachability work with 3G connectivity?

I am developing an iPad application, and I am trying to figure out the best way to decide if a user can connect to the Internet. If the user has no connectivity, I will load cached data, otherwise I will load new data. I am trying to use Apple's reachability class for this, and I wanted to see if I am doing this correctly. In applicat...

How to make a section header with an non-rectangular shape without ugly underflow?

I made an custom UITableView. Then I made a custom header for sections. It has round corners. But unfortunately, the rows of the section are visible in those round corners when the header floats over them. I could just make a background color so the corners are not transparent. But that is not a solution since my whole table has a backg...

Share background view between tabs on a UITabBarController

Is it possible to have the same background between tabs on a UITabBarController without having to set the same background on all the views? I want to put a view in the background that periodically does a very short, non-resource intensive animation. When switching tabs, I'd like that animation to persist. I've read how to do it for UINav...

connecting twitter

I am developing an iPhone application in which i need to connect with twitter. can i do this using twiter api key? If possible how to get the twitter api key? ...

UIImage resize (Scale proportion)

The following piece of code is resizing the image perfectly, but the problem is that it messes up the aspect ratio (resulting in a skewed image). Any pointers? // Change image resolution (auto-resize to fit) + (UIImage *)scaleImage:(UIImage*)image toResolution:(int)resolution { CGImageRef imgRef = [image CGImage]; CGFloat width ...

Is it possible connect USB DRIVE to iPhone (using data cable and EAAccessory) ?

Hello, all! Is it possible connect USB FLASH DRIVE to iPhone cable and onIphone reading data from this drive ? thanks, ...

Can YouTube be embedded in Android Applications? How about WebOS or Blackberry?

Can YouTube videos be played from within an AndroidOS without launching the separate YouTube player? How about WebOS or Blackberry? On the iPhone I can do this with a WebView and the embedded YouTube code and I'm weighing the possibility of porting my app to other mobile platforms. Thanks ...

FBConnect for iPhone: sessionDidNotLogin, sessionDidLogout, session didLogin not called the second time I load a view.

My problem is very similar to this question, however I am posting a new one, as the answer to the aforementioned does not seem to solve my problem. I have a multiview application - the first view is where the user logs in to Facebook, and the second where he picks an image and uploads it there. The first time the app runs, everything wo...

iphone xcode - different levels of drill down in tab bar controller - nav controller - table view

I have this type of data categories: today news -> news item jobs news -> news item general news -> sub category news -> news item So i have followed the very good tutorial 'Building an iPhone App Combining Tab Bar, Navigation and Tab' http://www.youtube.com/watch?v=LBnPfAtswgw and all is good with the 1st two 'todays news' and 'jobs...

How to move the scroll indicator of UITableView a little bit more to right?

Is there any way to move that scroll indicator to the right by some pixels? ...

Google Maps iPhone API Terrain View

We're using MapKit on an iPhone app to display a Google Map with terrain view. However, the terrain view only shows when the user has an active Internet connection, the moment the user's Internet is off, the terrain on the map disappears and it appears flat. Is there any way to keep the terrain view on even when the user isn't on an act...

Add a multiple buttons to a view programatically, call the same method, determine which button it was

I want to programatically add multiple UIButtons to a view - the number of buttons is unknown at compile time. I can make one or more UIButton's like so (in a loop, but shorted for simplicity): UIButton *button = [UIButton buttonWithType:UIButtonTypeRoundedRect]; [button addTarget:self action:@selector(buttonClicked:) forContro...

Iphone - UITextView Memory-leak

I have a memory leak when i use a UITextView but I don't understand why : UITextView *textView = [[UITextView alloc] initWithFrame:CGRectMake(20, 160, 280, 150)]; textView.text = @"Hello World"; textView.editable = FALSE; [self.view addSubview:textView]; [textView release]; Is someone could help me? :S ...

Getting started developing for iPhone

Hey all, quick question. My end goal is to start developing apps for the iPhone but my current skillset is pretty limited. I'm wondering how far back I should go back and where I should start as far as becoming familiar with coding before the iPhone SDK course on Lynda.com isn't something that makes my eyes glaze over. My experience...

iPhone OpenGL to draw a solid line ?

I am trying to modify the GLPaint sample from apple to draw a solid line instead of the transparent neon like line in it. I am trying to achieve the touch paint function to look something like a spray paint effect. I tried disabled the glblend but no effect. And also I am trying to make OpenGL to draw on a background image instead of the...