iphone

connect face book in iphone

hi all, I am new to face book connect. So can any one tell me how to add face book with our applications?? thanks in advance ...

Adding Navigation Bar items to secondary view in IB

I work on an application that presents a UINavigationController-based interface with a root view and a secondary view. On the root view, I have configured the left and right buttons to two toolbar buttons. I would like to configure the navigation bar items on the secondary view in a similar way. I know that it can be done with some codi...

Which autoresizing masks must I use within a UITabBarController?

From the docs of UITabBarController: If the root view controller is a navigation controller, the tab bar controller makes further adjustments to the size of the displayed navigation content so that it does not overlap the tab bar. Any views you display in a tab bar interface should therefore have their autoresizingMask ...

OAuth2 Flow for Mobile Devices

We're currently working on an API that will be consumed by a variety of different devices. We want to use the OAuth2 spec as it defines several flows which were not available in the original OAuth spec. My question is, what flow would work best for a mobile device such as the iPhone or iPad? What flow does an application like TweetDeck u...

Key Coder/Observer example for Iphone

I'm trying to implement KVO into an application, yet, I've followed the documentation provided by Apple, however I can't get it to work. I'm hoping to see a bare minimal example of how to use this with my NSObjects. My use case, is I want one item in a table-cell to update without loading the entire data in a tableView because I am load...

iPhone Enterprise Development

Hey guys, I am currently looking into developing a project for an enterprise environment and I have a couple of questions: Question 1: I was wondering what are the server requirements for this can it be done on any server or can this be done through IIS? Question 2: Currently the criteria is 500 employees and a Dunn and Bradstreet num...

Pressing UIBarButtonItem on a NavigationController

Hey I've added a button the my navigation bar like so: UIBarButtonItem *anotherButton = [[UIBarButtonItem alloc] initWithTitle:@"Edit" style:UIBarButtonItemStylePlain target:self action:@selector(methodtocall:)]; self.navigationItem.rightBarButtonItem = anotherButton; [anotherButton release]; However when I press this I ge...

iphone web based app - back button causing undesired behavior

i have a set of web pages specifically designed to run on iPhones (using iUI for look). My problem is the back button. I have custom back navigation in my pages that act as i wish (i.e. one of those websites that say 'please do not use your browsers back buttons'. but id like to not do that if i don't have to). if the user hits the back ...

iphone friends location app

What kind of api does SDK provide if we are to develop an app which keeps tracks of friends location? Update: CoreLocation gets the device location with the app running. But how to get the friends location data if you have their phone number. Does anyone have idea to get the location data of friends using iphone sdk ...

UIButton addTarget:action:forControlEvents: results in [NSObject doesNotRecognizeSelector:]

Hi. I tried a lot of stuff, still no result. So I have the following button created programatically in a subclass of UIViewController: rightButton = [UIButton buttonWithType:UIButtonTypeCustom]; rightButton.frame = CGRectMake(0.0, 0.0, 110.0, 40.0); rightButton.titleLabel.font = [UIFont fontWithName:GAME_FONT_NAME_STRING si...

how to create table view who's 1st cell look like as selected?

I have created one ipad app where 1st screen is split view. In that master view is table view and detail view holds image view controller. My problem is that when initially application gets loaded the 1st cell of table view should seen as selected and corresponding image view should appear at detail view. ...

need help how to come back to my main view

[textview resignfirstresponder] is not working its gets crashed app.... i have a about button on main view and ib action for that is (IBAction)About_Click:(UIButton *)sender{ CGRect textFieldFrame = CGRectMake(5,10, 380,440); UITextView *textView = [[UITextView alloc] initWithFrame:textFieldFrame]; [textView setTextColor:[UIColor black...

iPhone autoresizing

Is there a "stick-to-bottom" autoresizing mode in Cocoa-Touch? Basically, I got a UIImageView in the lower part of another UIView. When the UIView resizes, I don't want to change the UIImageView's size, but keep it in the lower part of the UIView, while only resizing the other subviews in my UIView above the UIImageView. Is that easily ...

Problem with a NSString that equals to (null)

Hi, I have an UIViewController named MainViewController I have another UIViewController named LeftSharingViewController; I would like to get and use the NSString from MainViewController in my LeftSharingViewController I have a problem, I always get (null) instead of the NSString wanted value. Here's my code and how does the NSString ...

Calculate the contentsize of scrollview

Hi all, I'm having a scrollview as the detailedview of tableview cell. There are multiple views on the detailedview like labels, buttons etc. which I'm creating through interface builder. What I'm creating through interface builder is static. I'm putting everything on a view of height 480. A label on my detailedview is having dynamic ...

Extending a view to the left side, animated

Hi, I have a view that I want to extend on the left side using an animation. All borders but the left one should remain the same, so the x position and the width of the view are changing. I use this code: [UIView beginAnimations:nil context:nil]; [UIView setAnimationDuration:5.0]; self.frame = CGRectMake(self.frame.origin.x-100, ...

Scrollview always scrolls to the bottom

Hi all, I have a view with scrollview as the detailedview of the table cells which is having contents as multiple labels with dynamic size and a couple of buttons which I'm creating through interface builder. Whenever I tap a cell this view is shown to me but the view is always the bottom view. If I scroll up, I'm able to see the conten...

My iPhone App doesn't work in iOS 4. Why?

Hi everybody. I make a iPhone App that display some videos, I made it with Xcode 3.2.2 with iPhone SDK 3.1.3 and works fine. But a few days ago I downloaded the last version of the iPhone SDK for iOS 4, the proyect Build ok, no erros, no warnings, but when I run the aplication the video didn't work, the image didn't load but sound works...

Where is it documented how view controllers resize their view?

As I'm not going to use XIB / nibs, I need to create all view controllers programmatically. However, I figured out that this really sucks hard. UIViewController seems to position and resize it's view in a really strange, unpredictable way. Example: I created a new project with this setup: 1) A RootViewController:UIViewController, whoo...

How can I click a button behind a transparent UIView?

Let's say we have a view controller with one sub view. the subview takes up the center of the screen with 100 px margins on all sides. We then add a bunch of little stuff to click on inside that subview. We are only using the subview to take advantage of the new frame ( x=0, y=0 inside the subview is actually 100,100 in the parent view)....