I'm using the Cufon font replacement tool on iPhone. Unfortunately, it's really slow there. (On a small 50 word page it takes about 2 seconds on my first-gen iPhone.)
Are there any optimizations I can make to improve performance? (If you have multiple tips, please split them out into multiple answers so they can be voted up separatel...
I can't seem to get the number of view controllers in the view controller stack.
NSUInteger *viewControllerCount = self.navigationController.viewControllers.count;
I can loop through the view controllers and NSLog the objects within but I can't do a simple count. If I try to access this pointer, the ap crashes... no Log, no error mess...
Hello!
I have a NavBar, a TabBar and a SearchBar with a ScopeBar. So the user can perform a search via a remote server. Clicking on one TableRow of the TableView a new ViewController with a xib is pushed into.
It is doing some calculations and it is possible, that I have to dismiss this View(Controller) and I should go back like I am c...
Hi,
maybe it is just to late or I´m to stupid, but I can´t solve this problem.
I use this code to file the rows in my UIPickerView:
self.component1Data = [NSArray arrayWithObjects: @"Sample", @"Sample1", @"...", nil];
How can I get a NSString instead of the "sample"? I tried it with "%@" but it doesn't work:
self.component1Data = [N...
How would I set the font size of text in a UITextView such that it fills the entire UITextView? I'd like the user to type in their text, then have the text fill the entire UITextView.
Any help is appreciated!
...
I'm uploading photos to Facebook from my iPhone application. I've got it working, except that sometimes, it returns "Unknown Error Occurred". I'm not sure what the problem is. This happens about 75% of the time.
Has anyone else encountered this?
...
Hello,
I try to pass a NSString from one view to an other view, but I doesn't work. I set a NSString in the SecondViewController as property
@property (assign) NSString * wert1;
When I load the SecondViewController with a button-press on the FirstViewController, I try to pass the NSString:
SecondViewController *Second = [[SpinViewCon...
Hi
I have several UIViews and UIImageViews that are loaded inside a UIScrollView.
Each "page", except the last one, in the scrollView works fine. The last view doesn't respond to touches, this is always the case no matter if there are 2 or 16 pages. All the pages are build in the same for loop using the same approach.
I have some UIBut...
I found a tutorial on the net that uses the stringWithContentsOfURL command that is now deprecated as of iPhone OS 3.0. However I can't find out what I'm meant to use instead, and how to implement it.
Below is the code surrounding the stringWithContentsOfURL line in case you need it for reference.
NSString *urlString = [NSString string...
Hi,
I have been having problems simply adding more than 2 views to the stack through the Dashcode GUI interface. I have seen how to do that programmatically, but is there a way to statically keep extra views within the stack?
I am actually okay with using a different stack, but the problem there is that I have to add another browser ar...
I need to create an iPhone simple view that, based on the location of the user in the world, points the person to a never-changing Long/Lat location.
Is it possible to know this from the iPhone API?
Any examples?
...
Hi,
I have a UITableView and each row I cliked display a UIViewController containing information store in my database like this:
[self.myViewController.myViewControllerDescription setText:[self.fiche description]];
The information store in the database contains HTML syntaxe ( < BR > ) and I display them in a UITextView (as you know ...
Im writing an iPhone app which retrieves data from a web service as XML. If no data is found by the web service, it returns an empty document like
<?xml version="1.0"?>
<root_element/>
This data is being parsed and then added to an array and subsequently a table view.
In my -numberOfRowsInSection I have return [self.array count]; Bu...
I'm new to MonoTouch and iPhone development. I have my images (PNG) in a resources folder in MonoDevelop, however if I want to set the image property for a button in Interface Builder, how do I do that? It's always a blank dropdown. Do I need to use XCode to access the XIB file and then somehow embed the button image file I'll need in it...
So it looks like mobile phones these days are capable of providing gps data ;)
I'm building a django app with a mobile edition that I want to be location aware.
My question is, how does one access GPS data? Is there a standard, or do you have to custom code for android/iphone/other.
Ideally, I'd imagine it being provided in the HTTP r...
hi, i try to insert data into mysql table in server using php server scripting, its working fine,
is it any possibilites to insert data into mysql table without calling the php server scripting,
thanks
...
Hi,
I put a background in my view like this:
UIImage *picture = [UIImage imageNamed:@"myImage.jpg"];
self.view.backgroundColor = [[UIColor alloc] initWithPatternImage:picture];
The problem is my picture is not big enough for the screen, so it repeat many times and its also not center in the View. How can I change that?
Than...
I'm a team admin (but not team agent) for our company's iPhone program on ADC. Can the Team Agent, who is a separate person, provide me a copy of the distribution provision profile file that I can use with XCode to create an ad-hoc build?
This is because the team agent person is not a technical person but they're the one who signed up f...
Having follow the tutorial at http://mithin.in/2009/06/22/using-iphone-sdk-mapkit-framework-a-tutorial/ to integrate the MapKit into my application. However, I want to be able to display an annotation for a dynamic "incident" on the map. Here's where I'm having problems.
Basically my apps an RSS reader, and it downloads everything and s...
In my XCode project, I added a Sounds folder to my Resources folder. Into the Sounds folder, I dropped a couple of MP3 files with fairly long names (25-30 chars). I like to be descriptive. However, the following code chokes with an UNCAUGHT EXCEPTION:
fileURL = [[NSURL alloc] initFileURLWithPath:[mainBundle pathForResource:@"really_r...