iphone-sdk-3.0

Vibrate when UialertviewAppears iphone sdk?

Currently i am playing a simple beep.mp3 file when alertview appears i am using avaudioplayer and set an indefinite loop to play beep until alert dismisses.Now i want to vibrate continuously when alertview appears with beep until user dismisses alert.how do i do this? ...

Using the address book UI with a custom data?

Hi, Is there anyway to use the great address book UI with custom data? From looking through the AB documentation all you can do is to use ABAddressBookRef ABAddressBookCreate ( void ); But this obviously creates a reference to the contacts on your phone... is there anyway that I can create a reference to say an array which I co...

Getting error when connecting to APNS using php need help urgently

Warning: Invalid argument supplied for foreach() in /home/content/t/3/k/t3kmast3r/html/PushService.php on line 13 Warning: stream_socket_client() [function.stream-socket-client]: unable to connect to ssl://gateway.sandbox.push.apple.com:2195 (Connection refused) in /home/content/t/3/k/t3kmast3r/html/PushService.php on line 53 Failed to ...

UIPasteboard Cut Paste Select buttons not showing up as expected

Experiencing the following behavior in all of our UITextViews. Have not seen any posts on this issue to-date. First entry into the Application works as expected (Can paste, select, cut or copy text). After exiting application and reentry, standard UIPasteboard buttons do not show up. This effects all UITextViews in the app. There is...

IPHONE (in-app purchase): What do I have to do to get the prices in local currency

I am creating an application with 3 different languages: english, spanish and french. I have created in-app purchases in these 3 languages and have created users on itunes sandbox for these 3 stores: France, USA and Spain. Before the user can click on the BUY button, even before the user logs in with his itunes username and password, I ...

IPHONE: listing all views and subviews created by my app

A few weeks ago I found somewhere a code that allows one to dump to the terminal, using NSLOG, a hierarchic list of all view, subviews and objects created by an application, but I cannot find this code anymore? Do you guys know how to do that? thanks in advance for any help! ...

IPHONE: variables in instruments

When using instruments to debug memory allocation, you can see how much an allocation is using, its address in memory, etc. My question is: is there any way to know which variable/object in your code corresponds to that memory allocation, inside instruments? thanks for any help. ...

Iphone Running Using Performance Tool

Hi all, I run my program using Object Allocations Performance Tool. My program is a really simple program which has a simple AtlasSprite object. Just it ! but I wached the allocations and it's allocations is always increasing in spite of doing nothing ! any idea !? ...

How I can access the call log/history of iPhone

This is for jailbroken iPhone. Is there a way I can access the call_history.db on iPhone which is a database where apple logs the phone call information. It is stored at /private/var/mobile/Library/CallHistory directory. When I try to enumerate directory paths under /private/var/mobile/Library it does not list CallHistory folder but e...

Plain C callback function pointer as part of iPhone delegate protocol?

Trying to integrate plain C/C++ code into iPhone project as an external static library. So far so good, but now I'm stuck at a point, where I need to register library callbacks. The library should notify my iPhone application, when something happens. Seems like a good place to define a Delegate. ...but the library is expecting C functio...

How do I [legally] get the current first responder on the screen on an iPhone?

I submitted my app a little over a week ago and got the dreaded rejection email today. It reads as follows: Dear -----------, Thank you for submitting --------- to the App Store. Unfortunately it cannot be added to the App Store because it is using a private API. Use of non-public APIs, which as outlined in the iPhone Develope...

iPhone programming cellForRowAtIndexPath not called even after delegate set

Hi, I'm trying to create and draw a UITableView populated by an array. I've created a UIViewController and set the UIViewController as my tableview's delegate. However, it seems that my cellForRowAtIndexPath method is not called when the tableview is created, so my table never gets populated. What am I missing here? (All labels are init...

How to enable-disable Notifications in settings app using sdk?

Hello all, I want to use push notification in my app so first time it launches it will automatically ask for notification.So i want to enable-disable push notification settings for my app programmatically.Note-I do not want to unregistered my app just disable Alert,badge,Sound for my app in settings app. ...

UITextField text value returns garbage

Hi, I am trying to get a string value out of a textField when the user dismisses the keyboard. However, it seems that whenever I try to get the value, I get garbage (attempting to print out textField.text gives out garbage). What could I be doing wrong? (The control displays fine, and I can put text values into it even). Here's my cod...

iPhone Status Bar for custom message ala Evernote, In-Call, etc.

I am trying to find how to implement a custom message on the status bar, something like the Evernote "Downloading changes..." message seen here. Is this a private API call? Any suggestions or pointers? ...

Is it passible to Hide UIToolbar with animation?

i know this code only available in navigationController only [self.navigationController setNavigationBarHidden:YES animated:YES]; ...

how to show a alert when user click on use button after shooting a picture using uiimagepicker?

I want to show a alert when user shoots a picture and click on use button.It's strange that in iPhone OS 2.0 when we shoot a picture it shows a loading message,but in iphone os 3.0 it shows nothing. How do i show an alert also is there a way to fasten the imagepicking process? in my app sometimes it's slow and sometimes it's fast i haven...

IphoneSDK : detecting devices with bluetooh (and only detecting)

Hi everyone, I have a simple question about the Iphone SDK bluetooth part. I would like to know if it would be possible under an application to detect all the bluetooth devices (iphone/ipod and others...) and if yes, to get the name of the devices. Thanks a lot guys !! Ad ...

iPhone simulator failed to install the application

I have an account on a university computer network, and whenever i try to Build and Go with an application in Xcode, i get this error : Error from debugger: Failed to launch simulated application: iPhone Simulator failed to install the application The SDK is installed in /Developer as expected and i have created my project directory o...

UITableViewController loads empty view first, but then loads correctly after second load

I have a UITableViewController which in it's tableView:didSelectRowAtIndexPath method, sets up a view controller, and calls [self.navigationController pushViewController: viewController animated:YES]. When i select a row in the root controller, the second viewController loads but is empty - table view loads but has no data. Here, tab...