iphone

How to disable select functionality in UITextView?

I want to create a text display area (either UILabel or UITextView) in my iPhone app which (1) allows scrolling and (2) does not allow selection. I have tried the following techniques unsuccessfully: Basic UILabel: Didn't allow scrolling, and clipped text to the bottom of UILabel space on screen. Giant UILabel within a UIScrollView: th...

Best practice for View-Routing in iPhone SDK

Hey, I've run into a little problem while developing a Core Data driven Quiz and be a bit confused about a best practice to solve my problem. I have approximately five templates for the diffrent questions, wich will be loaded in case wich question is displayed. So I check wich template has question 1 and push the new question-template...

IPhone Web Design Preview

I've been using Safari on Windows and the iBBDemo Blackbaud iPhone Browser Simulator to emulate an iPhone but I have noticed that Safari does not render form elements using the default control styles. Safari on iPhone supplies default control styles that are specific to iPhone. This means my web forms look nothing like they do on an actu...

AVCaptureVideoPreviewLayer: taking a snapshot

I'm trying to emulate the animation seen in the default camera app, where a snapshot of the cameras viewfinder is animated into the corner of the apps display. The AVCaptureVideoPreviewLayer object that holds the key to solving this problem isn't very open to these requirements: trying to create a copy of it in a new layer with .. - (i...

action for selecting an index in an indexed uitableview

Hey, I have sectionIndexTitlesForTableView implemented in my controller class. when I selected an index, I want to have my custom action. Is there a way to do it? ...

How to verify if an SQLite file is a valid Core Data store, both generally and for specific app?

I would like to verify my Core Data store (SQLite file) before loading it so that if there is any corruption, the app won't simply crash and burn. Using the iPhone SDK, is there a way to verify an SQLite file (1) generally that it is not corrupted, and (2) more specifically, whether or not the SQLite file matches one of the possible data...

How to change scenes in cocos2d while retaining state of the original scene

Hello, In my cocos2d project, I have two scenes. I transition between the two using CCDirector's replaceScene. Is it possible to save the state of the current scene so that when the scene is changed to a different scene, and then changed back to the original, all the objects and variables in the original are the same. Thank you, nonono...

.NET web service programming with iPhone clients in mind

I need to write a .NET web service which will be consumed exclusively by an iPad app. We are leaning towards using REST but could someone let me know whether this is the easier way (from the iPhone side). ...

internationalized file not being picked up on iPhone

I have a .plist that I have had translated in my app. Originally, I had one .plist (icons.plist) at application root. I load the file as follows: [[NSBundle mainBundle] pathForResource:@"icons" ofType:@"plist"] After making the file localized, adding my specific language (de in this case) I have checked to ensure icons.plist exists i...

Pass a Variable Up the Navigation Stack? - iPhone

Hi, I am able to pass a variable forward from view controller to view controller by pushing its view controller onto the navigation stack. An example of how I do it would be this: MyViewController *controller = [[MyViewController alloc] initWithNibName:@"MyViewController" bundle:nil]; controller.myString = stringToPass; [self.navigatio...

UIFont and Diacriticals

I'm writing a iPhone app that needs to render i18n text that includes diacriticals (tildes, accents, etc.). Apple provides the UIFont class which can be used to get a given typeface/font-size combination's leading, ascent, descent, etc. The problem is that this information does not accurately reflect diacriticals. Specifically, diac...

UDIDs in provisioning profile?

Given a provisioning profile, does anyone know how to determine what UDIDs are in that profile? ...

I can't get UIWebViewDelegate to work

I'm trying to implement a UIWebViewDelegate in my application and I cannot for the life of me get it to work. I would really appreciate a second set of eyes on this. I know the name MapViewController is confusing, but the WebView is controlling a map (not UIMapView). Here's the bulk of the code: MapViewController.h #import <UIKit/UIK...

Fonts not displaying in Interface Builder

For some reason many of the fonts will not display in Interface Builder when I am designing my iPad app. Unfortunately my iPad is yet to be delivered so I cannot tell if this is going to be a problem in the long run, but it certainly maintains through to the simulator. The fonts in question are listed on various websites as being compat...

iphone - launching an app and loading a file

I have built my own URL scheme for my App. As far as I understand, now I can have a link on a email, in the form myApp://.... and my app will launch. But what I need is this: my app creates its own kind of files. It is a zip file renamed as AnyName.myApp I need this app to allow the user to mail this file to another person that us...

push view when touchesBegan

I have a apps with a navigation controller, when the user is in a specific view, He can touch a scollview and I want a push the rootViewController. So, I have subclasses uiscrollview, and in the method "touchesBegan", I want a push the rootviewcontroller, but I don't have access to the navigation controller! How I can do that? thanks, A...

Using the apple FFT and accelerate Framework

Has anybody used the apple FFT for an iPhone app yet or know where I might find a sample application as to how to use it? I know that apple has some sample code posted, but I'm not really sure how to implement it into an actual project. ...

HTML5 video tag on iPhone OS 3 is appearing outside a layer that has overflow: hidden;

I have an HTML5 video tag in a layer that has 'overflow: hidden;' set on it, but the video shows up outside the overflow area. It's essentially an accordion control, so the layer the video is in will be closed by default, and then when activated it will open up with a little slide down animation. Unfortunately, because the video isn't re...

Drawing a solid line in a UITableViewCell

I don't know anything about graphics or drawing so I assume that's why I can't figure out what to look for to solve this. Here's what I got in my UITableViewCell's darwRect - (void)drawRect:(CGRect)rect { [super drawRect:rect]; CGContextRef ctx = UIGraphicsGetCurrentContext(); CGContextSetRGBStrokeColor(ctx, 0.0, 0.0, 0.0, ...

Data modeling in CoreData, (folders and documents with many children, etc)

Hi, I have used CoreData a couple of times but data modeling was very simple. This time I am supposed to implement the following: User can create documents and folders (they don't have to be real folders/directories). Folders can contain documents or other folders Documents have: 1 Title, 1 Description and 8 children Each child a...