iphone

Reading Safari cookies in iPhone app

Hi, is it possible to read the cookies of Safari in an own iPhone App? ...

Must I call -deleteRowsAtIndexPaths:withRowAnimation: inside an -beginUpdates -endUpdates block?

Must I call -deleteRowsAtIndexPaths:withRowAnimation: inside an -beginUpdates -endUpdates block? ...

Drawing an image on view over scrollview

Hi, I have a scrollview on a controller. To enable paging for scrollview, i have added another controller, which initializes when the pages are made. That means for each page i have a controller made at run time. In the view of scroll controller, i am trying to draw an image using drawRect. The problem is i see the drawn image only fo...

Tracking iPhone on Yahoo Web Analytics using ASIHTTPRequest

I'm trying to track an event in my app using Yahoo Web Analytics. The code I am using looks like ASIHTTPRequest *yahooTrack = [ASIHTTPRequest requestWithURL: [NSURL URLWithString:@"http://s.analytics.yahoo.com/p.pl?a=xxxxxxxxxxxxx&js=no&b=yyyyyyyyyyyy&cf6=zzzzzzzzzzz"]]; yahooTrack.didFinishSelector = @selector(statistic...

On the iPhone, is it possible to find out which WIFI network we are connected to?

If yes, can we also get additional information about the network configuration? One useful way to do this could be getting the SSID of the current network. Is there an API to do that? Update: I found a similar question here: http://stackoverflow.com/questions/339089/can-the-iphone-sdk-obtain-the-wi-fi-ssid-currently-connected-to ...

Core Data multi-threading

My app starts by presenting a tableview whose datasource is a Core Data SQLite store. When the app starts, a secondary thread with its own store controller and context is created to obtain updates from the web for data in the store. However, any resulting changes to the store are not notified to the fetchedresults controller (I presume b...

cllocation and mkreversegeocoder

Hi all, i'm try to retreiving city name with cllocation and mkreversegeocoder. in my viewdidload method i istance cllocationmanager: self.locManager = [[CLLocationManager alloc] init]; locManager.delegate = self; locManager.desiredAccuracy = kCLLocationAccuracyBest; [locManager startUpdatingLocation]; and after: - (void) locationMana...

Can we play both video and audio together in iphone?

Hi, Is there any way in iphone sdk by which we can play a audio and video together with the sdk 3.1 when i try to play them both that time only one thing is able to run either the video will play or if audio is playing than video automatically in pause mode and these files are working fine in the simulator of the iphone.Any particular f...

iphone - double tap fail safe way

I am trying to detect double taps on a view, but when the double tap comes, the first tap triggers an action on TouchesBegan, so, before detecting a double tap a single tap is always detected first. How can I make this in a way that just detects the double tap? I cannot use OS 3.x gestures, because I have to make it compatible with old...

iPhone, change color to each letter

It is possible to change a NSString color by letter? For example, if you have NSString *A=@"ASDFGH"; show in UILabel ASD with red and FGH with blue. And another question.. If I have a NSString, can I access the letter I want? For example, in NSString *A=@"ASDFGH"; how can I know what is the second letter which is S, or the third, whi...

iPhone SDK: Audio Queue control

Hi all, I am new to the audio queue services so I have taken an example from a book called iPhone Cool Projects where it describes how to stream audio. I want to extend this to being able to play a continuous playlist of links to mp3 files like an internet radio. The problem with the example code it that it does not detect when a str...

jerky animation using Core Animation

In my iPhone app, I am trying to get some red and white stripes that are scrolling across the screen to animate smoothly when the speed of the stripes gets high. In my app the user starts the animation and changes the scrolling speed by a finger swipe and changes the width of the stripes by a two finger pinch. Animation is stopped in r...

Generating an NSDictionary from an SQL statement.

I am trying to generate an NSDictonary that can be used to populate a listview with data I retrieved from an SQL statement. when I go to create an array and add them it adds the arrays for ALL my keys and not just for the current key. I've tried a removeAllObjects on the array but for some reason that destroys ALL my data that I already ...

iphone web service access

Hi, I have .net webservice methods login and summary. After getting the result from login, I need to show second view and need to call summary method. I am following this tutorial. http://icodeblog.com/2008/11/03/iphone-programming-tutorial-intro-to-soap-web-services/ I created two new classes loginaccess.h and loginaccess.m. @impl...

Add icon to home screen like Safari

I saw the Bug Me iPhone app and was intrigued by the ability to add icons to the home screen. I figured it would work similar to the way that Safari achieves it. There as a similar question here that said it was not possible: http://stackoverflow.com/questions/1451961/implementing-add-to-home-screen-ala-safari Clearly there is a way an...

Viable development for iPhone after 3.3.1 change?

With the latest changes to the developer agreement by Apple, how inherant is the risk of using any kind of framework to develop Apps for devices now? Should shops risk using things like MonoTouch, Three20, Appcelerator since this change? How are some iPhone/iPad developers here handling it? http://www.pcworld.com/article/193916/apples_...

Using of html5 <video> tag in web-based applications for iPhone

As you know iPhone plays video content from < video> tags in full-screen mode via internal media player. Here I have several questions: 1) is it possible to show custom text over video playing? something like subtitles appeared during movie playback. I tried several solutions like http://blog.gingertech.net/2008/12/12/attaching-subtitl...

iPhone : Which parsing method is best to use ?

Hi, All i want to know which parsing method is best to use among Simple XML parsing JSON Parsing. i am new to iPhone programming...thats why i want to know what is the advantages of JSON parsing ? when to use JSON Parsing ? thanking in advance... ...

Calling UITableViews delegate methods directly.

Hi I was looking for a way to call the edit method directly. - (void)tableView:(UITableView *)theTableView commitEditingStyle:(UITableViewCellEditingStyle)editingStyle forRowAtIndexPath:(NSIndexPath *)indexPath I have all my logic for animating manipulated cells, removing from my model array etc. in this method. It is getting called...

Environment variable in xcconfig won't expand in Settings.bundle/Root.plist

I have defined my own environment variable (VERSION) in a .xcconfig file and based my configurations on that as described at http://www.silverchairsolutions.com/blog/2008/03/automating-cocoa-deployments-with-sparkle-and-xcode. My environment variable is indeed expanded in Info.plist but not in my Settings.bundle/Root.plist. PRODUCT_NAME ...