For an App that is not going to be released on the AppStore I'm looking to embed an interpreter for easy scripting needs. Since I don't really like to get down with pure C, the interpreter should be an Objective C library.
While searching the web I've come across a couple of script interpreters for Objective C but whether those guys wor...
Hi,
I'm trying to test some simple string manipulation methods I need for my iPhone project. I was wondering if there was anyway of testing the results of methods without loading the simulator each time..
for instance in my main.m method:
#import <UIKit/UIKit.h>
int main(int argc, char *argv[]) {
testMethod();
NSAutorelea...
I'm trying to create a simple pickerview with two components, drawing its label data from a small mutablearray and output data from a simple matrix. The purpose of this wheel is to select a value from 0 to 1000, and then spit out the number in a label and the value to the rest of the application's functions.
Some specific info about wha...
Is there any way to know if a tableview cell is currently visible?
I have a tableview whose first cell(0) is a uisearchbar.
If a search is not active, then hide cell 0 via an offset.
When the table only has a few rows, the row 0 is visible.
How to determine if row 0 is visible or is the top row?
...
Hello All I need to sort an NSMutable Array that having a class Objects say Item .
Item class have date,url,link,title,guid etc .. I am storing this Object Into an NsMutableArray each time.
so MyArray will have number Of Item class Objects ..
now I need to sort Myarray using date attribute .
Can any one tell me the way.
Thanks
...
How to create new NSDate object from [myUIDatePicker date] ?
...
Does anyone know why xCode's "build and analyze" would report this line as a "possible memory leak"?
goodSound = [[SoundClass alloc] initializeSound:@"Good.wav"];
///// Here are the 4 files in question:
// Sounds.h
#import <Foundation/Foundation.h>
#import <AudioToolbox/AudioToolbox.h>
@interface SoundClass : NSObject
{
...
Hey everyone, I know this kind of questions have been asked a thousand times on this forum, but I have a slightly special case which I could really use some help with.
I have an NSString *expirationDate with the value = "2010-06-23 04:28:59.341818"
I need to convert to an NSDate object and compare against the current Date/Time. Can so...
I want to use the same number count like the mail icon for the iPhone and iPad how does that small number pop up over an icon?
...
I have three png's "320 x 480px" that I am loading into separate UIImageViews. The png's names are body, mouth, hat. By stacking the images on top of each other I create a character whose body parts can be swapped out easily. See photo>
http://www.1976inc.com/dev/iphone/beast.jpg
My Problem is that when you touch the top most UIIm...
hello all i m try to use a delegate method in my simple iphone application but i got a error.
if there are any example code. pls send me link or code.
...
I tried to look for a tutorial that tell me how to apply my own interface design on iPad application in (Xcode or interface builder don't know!) such as background images, overriding default button look and feel, but couldn't find anything, don't know may be i was trying the wrong keywords,
Can anyone give me some good links ?
Thanks
...
Since UIGetScreenImage() is banned again I'm looking for another fast way to get a 320x480 image representation of the current camera picture.
What would be the fastest way to downsize the image from didFinishPickingMediaWithInfo and save it as an jpg?
...
I have a project that has a dependency on a static library. In Xcode 3.2.3 the project that builds the library is setup as a direct dependency in the target settings so that the library is built whenever the main project is built.
I can't for the life of me figure out how this is supposed to work in Xcode 4. I haven't changed any projec...
I'm writing test cases for a wrapper class written around ASIHTTPRequest. For reasons I can't determine, my test cases complete with failure before the ASIHTTPRequest finishes.
Here's how the program flow works.
Start in my test case.
Init my http engine object, instruct it to create a new list
Create the new ASIHTTPRequest object and...
I am using a custom uitableviewcell and am trying to recreate a loose-leaf piece of paper for the background. Since each cell can grow depending on the amount of text, I need to use a pattern for the background of each cell. But I am having problems with these black lines and it's driving me mad!
I have made sure the tableview is not op...
I created a custom UItableviewcell
added a button into its initWithStyle area:
favoriteButton = [[UIButton buttonWithType:UIButtonTypeRoundedRect] retain];
favoriteButton.backgroundColor = [UIColor clearColor];
[favoriteButton setTitle:@"Play" forState:UIControlStateNormal];
[favoriteButton addTarget:self action...
I am developing an iPhone/ipad app using HTML,CSS and JavaScript that runs on an embedded webkit browser. There's an image in the page that's attached to the ontouchstart event handler. Testing on a real iPad shows that whenever I touch the image on the page, a little question icon pops up, which I do not want.
What is this little que...
I figured the easiest way is to simply store a reference to the Navigation Controller in each of the View Controllers I push on the stack. Or, I could just access the AppDelegate from anyone of my View Controllers and grab the Navigation Controller since that's where it's stored. Both of these approaches just feel awful, as though I'm ...
hello all, i m try to put validation in my iphone application.
pls inform me semple code to validate textfield.
...