iphone

subview is not added immediately (iphone)

When the return button on the keyboard for a textfield is tapped I want to add a UIView, then connect to a website with NSURlConnection sendsynchronousrequest and I have the code in that order But when I run in the simulator (I can't run on device) the connection is run first then the subview is added (ie the opposite of the order of the...

How I can change the "return" button name to search in an iphone app

How I can change the "return" button name to search in an iphone app using xcode Thanks ...

Count total number of Phone Numbers in AddressBook iPhone

I am trying to get the total count for the phone numbers listed in the AddressBook, in all groups as a whole. I can successfully retrieve Person count and Group count, just not the total number of Phone Numbers. ABAddressBookRef m_addressbook = ABAddressBookCreate(); CFIndex nPeople = ABAddressBookGetPersonCount(m_addressbook)...

How can I know which button I clicked to start an action inside the program?

I have 3 buttons which call the same function. I want to know inside the function which button called it. Is it possible to know it? ...

ViewController is leaving 20px white from lower part of screen when pushed

I am using multiple controller during launch of an application in app delegate. One controller is for registration and the second controller is tabbar. tabbar was loading fine but when I pushed registration controller on window, contents went up by 20 units and I have good white blank screen at bottom. Therefore I recreated frame of my r...

iPhone App Startup Screen

yet another basic question ... I have an app that takes about 4-5 secs to load. I want to use the time and show a startup screen that is visible at least for 4 seconds, and shows until the app is loaded and ready to show How can I build that into my app? ...

exactly as contact list some up

hi all, all i need to do is, when i launch my app,contacts of my iphone should come up. exaclty same as we see on contact. any suggestion,how can achieve it. regards shishir ...

Simple way to check google username and password in iphone app

What is the simple way to check google username and password whether it is correct in iphone app? ...

How to display the custom log in form using FBLoginDialog?

Hi all i am developing the application to post the data to the face book. I am using face book sdk for this. The problem is when try to display the log in form using FBLoginDialog it displays very big screen with lot of options. But i need the log in form like they display in their example project MyGrades. Please can anybody help me in ...

How to convert ASCII value to a character in Objective-C ?

I was wondering if anyone has the following php function equivalents in Objective-C for iPhone development: ord() # returns the ASCII value of the first character of a string. chr() # returns a character from the specified ASCII value. Many thanks! ...

iPhone SDK 3.0 not displaying error messages

Hi I could resolve this problem just now but assuming others might have the same problem, I post the "solution" here anyway. When building a project in XCode using "Build and Debug" and then running it the iPhone simulator would exit without printing an error message to the console. Like for example I would access an invalid pointer and ...

How to capture standard output on iPhone? (for development purpose)

How to capture standard I/O of iPhone? For private development purpose, not for public release. I'm trying some kind of irregular things. ex) Printing network stream input to both of iPhone console, and screen. Redirecting console output to network stream. Redirecting NSLog output to my own program. ... (and more) ...

How do I start up an NSRunLoop, and ensure that it has an NSAutoreleasePool that gets emptied?

I have a "sync" task that relies on several "sub-tasks", which include asynchronous network operations, but which all require access to a single NSManagedObjectContext. Due to the threading requirements of NSManagedObjectContexts, I need every one of these sub-tasks to execute on the same thread. Due to the amount of processing being don...

Stuck in itunesconnect submission version number limbo...

I did a very very stupid thing. I was uploading an update to my app on itunesconnect, but typed in the wrong version number. The version number I typed (1.02) was smaller than the one that's already up there (1.1). Apple accepted the submission, and planned to upload binary later. Went to upload the binary (also 1.02), but only AFTER...

UISegmentedControl - how to toggle between 2 UITableViews

I have a tab bar based application. What is the best way to toggle between 2 different UITableView views? Should I use a wrapper view and add those 2 views to it and depending on which segment was chosen I will show the correct view? Using only one tableView will not work because the layout is different between those 2 tableviews. Th...

Avaudioplayer problem regarding song overlaping

The problem is in being able to catch the instance of the player to control it i.e. Stop it, Play it etc. The code by default creates multiple instances of the same player and overlaps the songs. I am being unable to reference the player specifically. Do you have an idea as to how we can do so? Thanks, Arun ...

Facebook Connect to send SMS to Facebook Friends

Hi There, I am developing an iPhone application that will send sms the logged in user friends'. I am using FacebookConnect for the same. The problem is I am getting the uid of all friends but what is the way to send SMS to these uids(friends UID). Thanks, UPT ...

Why UIViewAnimationTransitionCurlDown & UIViewAnimationTransitionCurlUp only working perfectly in portrait mode?

I have lot of views that I turn up and down using these animations. It will appear like they are pages of a book. I calculate whether I am swiping up or down in screen using the y coordinate value. I obtain the coordinates from the touch. It works perfectly when I am in portrait mode. The page will only turn from the same corner of the ...

Can we put a UIButton in a UIScrollView and vice versa in iPhone

Can someone provide a code example for the given scenario? ...

Keyboard view is obscuring UITextField in landscape mode

Note: this happens prior to any of the UITextFields being pressed (e.g. the keyboard hasn't yet appeared in the View) I've created a simple view with 3 fields 1 of which appears above where the keyboard would appear, and 2 which appear below. Loading it into a ViewController works fine until I come to try to click on the 2 UITextFields...