iphone

Getting publish_stream extended permission from the user

I was ussing Facbook connect in my iPhone app, but in december the posts stopped working. After some research I found that i'm supossed to use stream.publish, something like: NSString *att = @"{\"bob\":\"i\'m happy\",\"caption\": \"User rated the internet 5 stars\", \"description\": \"a giant cat\"}"; NSDictionary *attachment = [NS...

iPhone tableview: titleForHeaderInSection derived from array

I have a tableview that is populated by an array. Currently the tableview has no grouping. What I would like to do is check a value of each array object, such as State, and group all the CA items together, all the OR items together, etc. Then, assign those groups a title. The array is dynamic, and will grow and get new values in the ...

iPhone write to file (alternative directory)

New to iPhone 3.2, Apple introduced File-Sharing support. Details can be found at https://developer.apple.com/iphone/library/releasenotes/General/WhatsNewIniPhoneOS/Articles/iPhoneOS3_2.html#//apple_ref/doc/uid/TP40009337-SW1 . Now, most examples floating around in the web demonstrates writing to the documents directory. What if I wan...

Can I play any Buffer only once at a given time?

From the OpenAL documentation: The basic OpenAL objects are a Listener, a Source, and a Buffer. There can be a large number of Buffers, which contain audio data. Each buffer can be attached to one or more Sources My problem is, that I have one sound file which I need to play multiple times per second, at the same time. Th...

UIWebview contents as NSString from HTML

I'm trying to reading part of HTML source code from website that has been encapsulated by javascript;basically i'm trying to read email which appears in webview but not in real source code using NSString method of 'NSString stringWithContentsOfURL:(NSURL *)url'. it looks like code showing up before hitting up the inner java script (which...

sqlite database opens fine on the iPhone simulator, but not on the device

Why would this run fine on the iPhone simulator... but the database can't be opened on an iPhone device? sqlite3 *g_Db = nil; BOOL OpenDatabase(NSString *databaseName) { if(sqlite3_open([databaseName UTF8String], &g_Db) == SQLITE_OK) { NSLog(@"Opened db ok"); return(YES); } else { NSLog(@"Can...

Resize font size in UITextView

Is there a way to shrink the font-size in a UITextView if there is too much text? Similar to the UILabel? ...

How to HIDE the iPad keyboard from a MODAL view controller?

I'm trying to hide the iPad keyboard from a modal view controller but it doesn't work. I have tried resignFirstResponder but that doesn't have any affect if we are in a modal view controller. I tried resignFirstResponder in a non-modal UINavigationController with the very same UIViewController and the keyboard hides correctly. Does anyo...

How to develop for iphone application about "retrieving database file on web"?

Hi...all experts! I'm a newbie to iphone developer. Well, currently, I'm developing iphone for Location Based Service. That application need to have these functions. 1. hierarchical tree-view on navigation bar. 2. list up page 3. detail page for example, Let's say. I have top category like "Restaurant, Hotel, Gift Shop" Second leve...

Save image and scroll in interface builder?

How do I get Interface builder to save images on the screen, and add the ability to scroll? ...

Im Stumped, Why is UIImage\Texture2d memory not being freed

I've been looking everywhere trying to find a solution to this problem. Nothing seems to help. I've set up this basic test to try to find the cause of why my memory wasn't being freed up: if (texture != nil) { [texture release]; texture = nil; } else { UIImage* ui = [UIImage imageWithContentsOfFile:[[NSBundle mainBundle] pathForResourc...

Word on HTML document point, using UIWebView, DOM and Javascript

Hey guys, How can I figure out which word is at the point where the user tapped on a UIWebView? I am able to detect the CGPoint for the tap (subclassing UIWindow like this), and I can actually get the DOM element on that point using javascript. But I know very little of javascript and DOM to figure out how can I actually get which wo...

Need example of how to create/manipulate image pixel data with iPhone SDK

Looking for a simple example or link to a tutorial. Say I have a bunch of values stored in an array. I would like to create an image and update the image data from my array. Assume the array values are intensity data and will be updating a grayscale image. Assume the array values are between 0 and 255 -- or that I will convert it to ...

Beginner iPhone Controller Question

I have a view that only has a button UIButton. First time clicking the button will draw a square above the button and the second time will replace the square with a circle. I need some help on writing the controller code. Please guide me to the right path. Thanks ...

Two AppStore Accounts With The Same Name. I got codeSign error 'Name' appears more than once in the keychain

I got another new account for the AppStore, I setup the new account certificates on my MAC. Now when I try to publish XCode gives me the error CodeSign error: Certificate identity 'iPhone Distribution: 'Name' appears more than once in the keychain. The codesign tool requires there only be one. How can I change my certificate identity f...

Simplified iphone In-app store implementation for built-in product features

This question is for those familiar with implementing the iphone in-app store functionality. The app I'm building has only built-in features that are unlocked when features are purchased. Further, any modifications or additions to store items will require an app update. Also, it is only in English so has no localized languages for t...

iPhone animaion, how to flip a coin (2 UIImageview)?

Assume there are 2 UIImageview s, the front and back images of a coin. How to animate the 2 UIImageviews such that the face and the back is flipping (spinning) continuously? Thanks! ...

does the accelerometer work for the iphone/ipad simulator?

From what I can tell, my app should be firing accelerometer events while Im using the iPad simulator in XCode, but its not. I have googled around and it somewhat seems that the accelerometer is not implemented in the simulator, is this correct? If so, why on earth would they have a "Hardware->Shake Gesture" menu option? My code is as f...

iphones inbuilt mail composer

Hello everyone i am new to i phone development i have a requirement that my email us field is coming from webservice on tapping it the iphones email composer gets open if i want to add a button on iphones in built mail composer i could i do that please guide me to do that a sample code would be a boost ...

Is there a way to know when the index on uitableview is actually used?

Is there a way to know when the index on uitableview is actually used? I can’t find any methods in the Apple documentation, but I was wondering if anyone else knows anything. I would basically like to make an animation in my table view that changes depending on what section is selected in the index, and I have no idea how to do this with...