iphone

iPhone jQuery breaks after triggering the email overlay

I'm developing a mobile site for iPhone using jQuery. I have a hidden div (class .tile-content) that holds some content. Clicking a link with onclick="showContent(this)" calls fadeIn like this: function showContent(obj) { alert($(obj).html()); $(obj).next('.tile-content').fadeIn(); r...

How to perform a case and diacritic insensitive filter of an array of NSDictionaries (not NSString)?

I have an array of dictionaries. I would like to filter that array by seeing if the @"name" field of each dictionary contains a given string. The catch is that I would like to make my filtering insensitive to case and diacritics. If the array contained only strings I could easily use an NSPredicate. However, it doesn't, and I don't s...

iphone EXC_BAD_ACCESS caused by emergency_mutex

My iphone app occasionally crashes on the simulator and device with this message in the debugger: Program received signal: “EXC_BAD_ACCESS”. Data Formatters unavailable (Error calling dlopen for: "/Developer/Applications/Xcode.app/Contents/PlugIns/GDBMIDebugging.xcplugin/Contents/Resources/PBGDBIntrospectionSupport.A.dylib": "dlopen(/D...

Core Plot causing crash on device but not simulator.

I'm using core plot to create a small plot in one of my view controllers. I have been pulling my hair out trying to track down this error. I install on the simulator and it works fine but as soon as I put it on my device I get the following error: 2010-02-04 22:15:37.394 Achieve[127:207] *** -[NSCFString drawAtPoint:withTextStyle:inCon...

Connecting the login flow between Android/iPhone app and the web.

When the person opens my app, I want to display a button. The user clicks this button, and it opens a browser (embedded, of course) inside the app, allowing the user to LOGIN through that web page. Of course, when the person logs in, it only logs in to that web server. The web service now knows that the user is logged in. As the user ...

Cocoa Touch Updating UITableView from Core Data

Hi there, Say I have two UIViewControllers, all working under a UINavigationController: RootViewController hosts a UITableView which contains a list of domain names. CodeViewController shows a domain. A user can view any domain they like; once the domain is viewed in CodeViewController, the name is added to the store via Core Data. ...

Changing properties in tab bar More page

I have a tab based app that has 6 view controllers. The SDK puts the last two controllers on a More page. I would like to access the More page so I can change the color properties. It uses a default blue navbar, but my app uses black bars throughout and I'd like to control some properties on the More page. But since this page is set u...

Not getting full download with NSURLConnection GET in iPhone app

Situation I'm using NSURLConnection to download an mp3 file to the documents directory on my app. On the simulator I get the full mp3 file downloaded with no probs. On the device, however, I can only seem to get 1 second of audio for each mp3. I am connecting to a free WiFi point when performing this download from the device, in contrast...

AccessoryDetailDisclosureButton not deselecting after I call deselectRowAtIndexPath

In my tableview I have number of rows that have disclosure detail button accessory type, and when pressing the row or the accessory, a new view is pushed to a navigation controller. I call the deselectRowAtIndexPath at the end of the didSelectRowAtIndexPath function. If I press the accessory button, I go to a new view, but it remains hi...

Idiomatic iPhone development for .net developers

I was wondering if anyone had any links to some decent blogs helping developers to make a transition from C#/Asp.Net to iPhone development. I'm really looking for something that will explain the mindset I need to be succesful using Cocoa Touch, Objective-c and Xcode, coming from a VS/C#/ASP.Net development platform. Sort of an hollisti...

How do I delete a file in my apps documents directory?

Given, a file of path [[self documentsDirectory] stringByAppendingPathComponent:@"myFiles/aFile.txt"], How do I delete a file in my apps documents directory? ...

How does overlayViewTouched notification work in the MoviePlayer sample code

Hi, I have a question regarding the MoviePlayer sample code provided by apple. I don't understand how the overlayViewTouch notification works. The NSlog message I added to it does not get sent when I touch the view (not button). // post the "overlayViewTouch" notification and will send // the overlayViewTouches: message - (void)overlay...

iPhone SDK: how to get the value of a UITextField in an alert?

I'm really new at this. I've been working my way through a couple of "HelloWorld" type tutorials that basically have a text field, a button, and when you click the button it alerts whatever's in the text field. I've gotten as far as getting an alert to show and being able to set the title, message, and button text directly. However my at...

adding a footer overlay to the main window, to be shown over every subview, in an application using navigation controller

I'm working on an iPhone app where I'm using a navigation controller (UINavigationController) to navigate through the various child views, and I would like to add a uiview to either the main window or the navigation controller, as a footer overlay that shows up on top of all the child views. I've tried this through interface builder, an...

iphone - any way to manipulate recorded audio?

Specifically, I just want to record something, reverse it, and play it back. I've looked through the apple docs and couldn't find anything about editing audio. Is it possible? ...

iphone application

Hello I am still learning about iphone application. I want to upload the images which I have taken from iphone camera, to the server database. I have used base64 algorithm for that. The problem is it takes 5 minutes to upload 10 images. So, is there any way to compress it and then convert it into base64, because my server is taking input...

How do you prevent objective-c method execution while waiting for an NSURL connection to finish?

Ok, This may be a very simple question to ask with a very obvious answer but I'm a little stuck on the best way to solve this problem. I am coding an objective-c application using the iPhone SDK. I have some custom objects. These objects execute an NSURL request and send data to a web server, retrieve data back and move on. My problem ...

How to show a UIProgressView for a download in my app?

I would like to show a progress bar indicating how much of a file has been downloaded in my iPhone app. I know how to set up the UIProgressView in IB and all that. But I need data such as file size in bytes to run it. How do I go about integrating such functionality with my byte download code (shown below)? - (void)connection:(NSURLConn...

How to determine the size (in bytes) of a file downloading using NSURLConnection?

I need to know the size of the file I am downloading (in bytes) into my app using NSURLConnection (GET). Here is my bytes recieved code below if it helps. What I need to know is how to get the filesize in bytes so that I can use it to show a UIProgressView. - (void)connection:(NSURLConnection *)theConnection didReceiveData:(NSData *)dat...

Referencing view in tabbar app?

I have a tabbar based app and would like to reference one of three views. There are three tabs. When tab2 is clicked, tab2view is created. tab1view needs to reference tab2view so it can be pushed into view. tab2view can be pushed into view via tab2 or tab1view. How do I give tab1view a reference to tab2view? tab1view will also ne...