iphone

Selecting xcode project template

Hi I am new to iphone development. I have to develop an iphone application which is basically a questionare. When user runs the application he has to answer around 30 questions, each one at a time. I am planning to use the Navigation template project for this application. Where i can create a view with question and optional answers (in ...

Is that possible to embbed Scheme(lisp) interpreter into iPhone app?

Hi. I'm finding embeddable Scheme interpreter(or JIT compiler or anything) into Cocoa Touch. I think just a C compatible Scheme engine may be fine. Please recommend some. I wish it's MIT/BSD style free license, but commercials are fine too. And.. does Apple AppStore allow embedded scripting like Scheme? ...

Recreate scope bar of UISearchBar

I want to recreate the scope bar of a UISearchBar, just for use as tabs. I'd like to adopt the UISearchBar scope bar's style. I've thought about Quartz 2D to draw these tabs in combination with UIControl for managing the different states of the tabs. What are you thinking of? ...

Change UINavigationItem Color to Black

I am looking at example provided by Apple called LocateMe. I am basing my application on similar UI flow. In that example the top bar of the screen is black. Looking in the code and xib file I am not able to figure out how did they get that black bar on the top. When I set up my project exactly like them, I get blue bar. Please help. ...

When should I make a referencing outlet for a UI control and when just an event? (iPhone SDK)

I have some code that works without having referencing outlets for the controls - just event ties in Interface Builder. Is this ok and is a referencing outlet only necessary to change the state of a UI control? Thanks. ...

Need to do the opposite of NSSelectorFromString()

In Cocoa, you can write @selector(mySelectorNameWithObject:) to get a compiled SEL, or at runtime, NSSelectorFromString(@"mySelectorNameWithObject:") with return a SEL. According to Apple documentation: The only thing that makes the selector method name different from a plain string is that the compiler makes sure that selectors are ...

Core Data unique attributes

Is it possible to make a Core Data attribute unique, i.e. no two MyEntity objects can have the same myAttribute? I know how to enforce this programatically, but I'm hoping there's a way to do it using the graphical Data Model editor in xcode. I'm using the iPhone 3.1.2 SDK. ...

Horizontal UIScrollView with images in a component?

Hey guys, I've started implementing a UIScrollView that will contain many thumbnail-sized pictures and will scroll only horizontally. For this, I keep a limited number of UIImageViews created and remove/add them to the UIScrollView as the user scrolls it. The problem is I need to find a way to optimize it as scrolling sometimes gets sl...

Why isn't my nib interfacing with my code?

Can someone help me figure out this weird issue? None of my button actions are getting called. http://drop.io/cpyexk7 ...

linux language to use to mirror iphone development

I want to create a gui program in linux which I eventually might move to the iphone. What programming language and GUI framework should I use to make this easiest? I'd assume using Objective-C would be best, since gcc will compile that, but are there GUI frameworks that work with Objective-C that are similar to Cocoa and won't require ...

NSMutableArray of Objects Returning Type UICGColor during cellForRowAtIndexPath Event

Hi everyone I'm pretty new to Objective C and iPhone development and have hit a problem which has completely stumped me I have a class, Sale, which has the following class method: +(NSMutableArray*)liveSales { NSMutableArray *liveSales = [[NSMutableArray alloc] init]; for(int i = 0; i <= 100; i++) { Sale *s = [[Sale alloc] init];...

iphone screen size with status and nav bar?

hi there can someone just confirm the exact size of the remainder of the iphone screen with a status bar and nav bar shown. i'm just trying to make a template to work off so i know how much room i have to play with. iphone screen = 320 x 480 status bar - 20px nav bar - 44px so portrait i have 320 x 416 and landscape 256 x 480 is all t...

UIImage created from CGImageRef fails with UIImagePNGRepresentation

I'm using the following code to crop and create a new UIImage out of a bigger one. I've isolated the issue to be with the function CGImageCreateWithImageInRect() which seem to not set some CGImage property the way I want. :-) The problem is that a call to function UIImagePNGRepresentation() fails returning a nil. CGImageRef origRef = [s...

Writing xml file on iPhone (Linq=to=Xml and MonoTouch)?

I need to read, edit and save one xml file. In other words, I want to write again over the same file and not to create a new xml file. Reading and editing parts work, but not the saving. The Linq-to-Xml code for saving is simply: doc.Save(this.Path); This works in iPhone Simulator but throws System.UnauthorizedAccessException on the ...

Flip tableview inside navigationcontroller

I'm learning cocao touch, and trying to make an app with a tabbar, various views, one of them af navigation controller, controlling a normal table with a normal tree architecture. In one of the tableviews I want to flip a different tableview, also capable of navigating down multiple tables. The way I've tryid to make it, is with a sta...

How to get mp3 files to play in iPhone Safari web browser?

How can I get an MP3 audio file to play in iPhone Safari (OS 3.1)? Currently, I am generating HTML e.g. <a href="file.mp3"><img src="sound.png" alt="Play audio"/></a> to play the file on clicking on the nested image. This works on Safari on OSX, but not on the iPhone. There, the content of the file is shown as text, but it does not a...

NSData to UIImage

I'm trying to save a UIIMage and then retrieve it and display it. I've been successful by saving an image in the bundle, retrieving it from there and displaying. My problem comes from when I try to save an image to disk (converting it to NSData), then retrieving it. I convert the image to NSData like so... NSData* topImageData = UIImag...

YAML/JSON/XML which one to choice on IPhone for communication over RESTFul protocol?

I'm writing as simple application that comunicate with an external server. The server currently support yaml, xml and json. Which encoding is fastest on IPhone? Which has better support? What libraries do you suggest? ...

How to start a major iPhone app update in Xcode

I have an app in the iPhone app store and have released several minor updates to it. I want to begin work on some major feature additions and reorganization, but don't want to lose the source code of my most recent version in case everything goes horribly wrong. Should I start a new Xcode project from scratch and copy my existing source...

Managing subview when orientation change on iPhone OS 3.0

Hello, I am experiencing difficulties managing my view controller rotation. Here is my app structure : [Window] ---[addSubview:MainViewController.view] My MainViewController's view contains an UIImageView which I need to rotate, this is my app background. In my AppDelegate and MainController I overrided shouldAutorotateToInterfaceO...