iphone

How can I detect if a string contains punctuation marks at the end?

Lets assume I have the string: "Hello I like your shoes #today...!" I am tokenizing the string by spaces: return [string componentsSeparatedByString:@" "]; So my array contains: Hello I like your shoes #today...! I want to focus on "#today...!" any word that has a # in the prefix I am changing the font color. How can I make sur...

Changing style of pickerview.

How can I change the style of pickerview. I want to change its white background to green color and its black frame to red color. Anyone please help. I am a beginner. ...

Reproduce Springboard's icon shine with WebKit

Hi, anyone got any ideas on how to reproduce the gloss of iPhone app icons using WebKit and CSS3 and/or a transparent overlay image? Is this even possible? ...

Enterprise Native Mobile Application Development

I tend to believe that developing mobile applications in an enterprise environment is best suited by developing intranet web applications. That said I have been asked to think about whether there are specific enterprise applications that could only be accomplished or would be more successful as native applications. I am curious as to wha...

How to write UIWebView with default request address is like (192.168.1.1)..

i have implemented UIWebView in my application but i default address is "192.168.1.1" but it is not open default it and i have tried with "http://www.google.com" it is working fine. [iview loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:@"192.168.1.1"]]]; it doesn't working and it is working with [iview loadRequest:[NS...

Keyboard blocking my view

I have a UIView with another UIView inside it. On the inside UIView there is a textbox which I want to fill in. When I try to fill it in the keyboard blocks my view: The UIViewController has the following containerView = [[UIView alloc] initWithFrame:[UIScreen mainScreen].bounds]; self.view=containerView; //The apropriate releases etc ...

How to find the only UILabel in a view and hide it?

I am adding a UILabel as a subview to a UIView and sometime later I want to hide it. It is assigned to a variable but I don't think setting the variables property Hidden after it's been added to the view will work (well it doesn't seem to anyway). Is there a way to loop through the subviews in a view and then find the one that has a spe...

iPhone - Create non-persistent entities in core data

Hi everyone, I would like to use entity objects but not store them... I read that I could create them like this: myElement = (Element *)[NSEntityDescription insertNewObjectForEntityForName:@"Element" inManagedObjectContext:managedObjectContext]; And right after that remove them: [managedObjectContext deleteObject:myElement]; then ...

I'm implement http live streaming video from my webserver to iPhone. Will I get rejected for bandwidth?

Apache webserver setup added: AddType application/x-mpegURL .m3u8 AddType video/MP2T .ts to "httpd.conf" file. Movie file preparation I have 3 movie files (9mb - 25mb each). Used QuickTime to convert movies into iPhone format. Used mediafilesegmenter to convert .m4v into 10-second segments of .ts files, with an accompanying .m3u8 ...

iPhone JSON Object

Hello, I'm trying to create a application that will retrieve JSON data from an HTTP request, send it to a the application main controller as a JSON object then from there do further processing with it. Where I'm stick is actually creating a class that will serve as a JSON class in which will take a URL, grab the data, and return that o...

Are there any known problems with iPhone OS 3.1.2 (7D11) regarding graphic rendering?

On one of my test devices, an iPod Touch MC086FD (next generation, with rounded back and built in speaker, bad display compared to first gen ipod touch), I am getting a VERY serious bug: When a table view scrolls, the corners of the table view and some views around the table view start to flash. when the table view scrolls, the flash fr...

Set UIImageView Size?

hi, i have following problem: i generate subviews UIView in an UIScrollView including UIImageViews. NSArray *bilder = [[NSArray alloc] initWithObjects:@"lol.jpg", @"lol2.jpg", nil]; NSArray *added = [[NSMutableArray alloc] init]; UIImageView *tmpView; for (NSString *name in bilder) { UIImage *image = [UIImage imageNamed:name]; ...

How can I convert a timestamp to a user-friendly time string

I want to be able to present "today" and "yesterday" for recent dates in my application. I've got a date formatter in use currently to show dates (retrieved from data records) and will keep using this for anything more than a couple of days old. I just really like the way the SMS app in the iPhone shows dates for recent messages and woul...

How to prevent modal view controllers flashing when changing

I have three view controllers, let's call them A, B and C. When a button is pressed on view A, view B is shown using presentModalViewController:animated: When the finish button is pressed on screen B, it dismisses itself. View A is notified whereupon it immediately shows view C, again using presentModalViewController:animated: The pro...

UITableView Scrolling Performance and semitransparent views - does it matter only in the table?

I have a UITableView which only takes like 3/4 of the screen, but not the entire screen. Now I wonder if it matters to scrolling performance a lot, if outside the UITableView there are views with alpha 0.5? When a table view scrolls, is the entire screen affected with compositing and drawing, or only the frame of the table view? ...

Simplest way to keep a NSInteger in an iPhone ?

Hello, I am coding my first iPhone game with cocos2D. And I want to save the best score of the player (just an NSInteger) in the app. What is the best and simplest way to keep this information ? Thanks ! ...

Querying installed applications on an iPhone

Is there a way to query the installed apps on an iPhone for an iPhone app? If yes how? ...

Text inset for UITextField?

I would like to inset the text of a UITextField. Is this possible? Thanks. ...

Accessing a file from a Unit Test Bundle with Xcode 3.2

How do you access a file to use in unit tests? (Every time I have asked with more specific information I cannot get ANYONE to answer.) ...

iPhone Tab Bar application crash

I have an application that uses a tab bar and whenever it launches it crashes and gives me the following error and stack trace: 2010-04-22 16:15:03.390 iCrushCans[59858:207] *** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<UIWindow 0x3e051a0> setValue:forUndefinedKey:]: this class is not key value coding...