iphone

Trying to Hide iPhone Status Bar White Space

I have a scroll-view with a UIImage on top the UIImage has its own view controller class and the scroll view is on the main root-controller. I added the hide status bar method to the root-controller but when I run the program the status bar disappears but leaves a white space and the view does not grow over the status bar white space. I ...

Size of the images in iphone

Will the size of the (dimensions and also image storage size) change whensaving to iphone from our computer. I saved an image(1200x1600) of 100kB size to the iphone simulator via safari. From my application, i changes itsdimension to 640x480 and uploaded to server. But the uploaded image was of size 144KB!!! How does this happen?? ...

Does it make sense to use Vertex Buffer Objects even when changing the Model View matrix?

I'm looking to get some additional performance (FPS) increases on my iPhone App. I'm already using interleaved data, GL_SHORT and a single texture atlas. See this question for details of what I've already done. Now I want to look at using VBOs to increase performance. According to Apple's OpenGL ES documentation this is a good step t...

Is app startup time restriction limited to applicationDidFinishLaunching?

If my app shuts down because load time takes to long, can I move some code in or being called from applicationDidFinishLaunching into the RootViewController? Meaning, is the (shutdown) timer only looking at applicationDidFinishLaunching? ...

read single line from text file in objective-C

hello, i'm new to iPhone programming and coding in XCode SDK.I want to access and read the configuration file which i have placed in Resource folder in XCode,my configuration file looks like this @key=value$ @vinu=flower$ @cathy=fruit$ I want to compare the key and access the value from configuration file. Since i'm working with iPho...

how to draw line between two points?

i want to draw line between two points in my view how it possible.? Edit:ya thax.i have got solution. Line draw perfectly.I want to draw multiple line with different points.I am using for loop and every rotaion i pass the start and end points.but only last point is drawn.how to solve this problem? ...

Full Text Searching in Apple's Core Data Framework

I would like to implement a full text search in an iPhone application. I have data stored in an sqlite database that I access via the Core Data framework. Just using predicates and ORing a bunch of "contains[cd]" phrases for every search word and column does not work well at all. What have you done that seems to work well? ...

Is there any example-help available to develop custom tabbar with custom height?

HI. I want some tutorial - sample on UITabbar customization. aspecially I want to change its height such that the gap between my view & tabbar does not appear. Is there any code-help available ? Thanks in advance I tried : #import "TabBarDemoAppDelegate.h" @implementation TabBarDemoAppDelegate @synthesize window, rootController, nav...

Cllocationmanager update oldlocation

Hi to all when i run my application its get my location(Lat,logi) both new and old location.But i want to set oldlocation as new location when my application run first time.Because i want to calculate distance travel. If i run my application it takes oldlocation where last location it get (saw distance travel 1 Km when i start applicatio...

/Developer/usr/bin/dsymulti failed with exit code 11

hi i'm getting this error as listed below /Developer/usr/bin/dsymulti failed with exit code 11 How to resolve this error ?? ...

HTTP request using threading from iphone

Can anyone point out a turorial which explains threading?? In my application, i'm uploading some data (even large sized images) to the servelet. The uploading process may take quite a large time depending on the bandwidth, as usual. So i need to implement threading in it so that the uploading process takes place in the background. Any ex...

SQL-lite efficiency

Hello guys! I want to store my map data in the sql-lite database on iPhone. I want to use the "NSUserDefaults" class for this. What do you think? It will be efficient to ask the database manager to load the map everytime I need it? And how big map can I store there? Is there any limitations? Thank you for the answers! ...

How to control screen-orientation for iPhone in web app

I have a very basic web page that uses flot to create a canvas based graph (similar to what SO uses for reputation graph). In the case of a PC display, it should simply output normally, with a the width (x-axis) being 1.6 times the height. But for iPhones, I would like it if, rather than having it overflow in "canvas" orientation, the ...

How to prevent a globally overridden "new" operator from being linked in from external library

In our iPhone XCode 3.2.1 project, we're linking in 2 external static C++ libraries, libBlue.a and libGreen.a. libBlue.a globally overrides the "new" operator for it's own memory management. However, when we build our project, libGreen.a winds up using libBlue's new operator, which results in a crash (presumably because libBlue.a is maki...

How to add custom map source to route-me?

Hi, 'route-me' is an iPhone map engine and I want to add my own map source to it. I've got all the map images on my server but I dont know how to add the map source? Any one could help? ...

[UIApplication sharedApplication] doesn't return windows

I need to add a view to window on iPhone, so i tried to do this: [[UIApplication sharedApplication] windows], but it seams that the array contains only one window. Can anyone tell me what i'm not doing write/what i need to do? ...

modalviewcontroller animation too fast?

I'm displaying a modal uiviewcontroller in the normal fashion: [self.navigationController presentModalViewController:self.lvc animated:YES]; //do stuff and later on... [self.navigationController dismissModalViewControllerAnimated:FALSE]; The problem is that //do stuff is too fast, and the dismiss call happens before the presentatio...

iPhone UIToolbar UIButtonItem highlighting

I have subclassed UIToolbar and within it have created a set of UIButtonItems, all added in order and nicely spaced with flexible spaces. I now want to toggle one of the UIButtonItems each time it is tapped (just like the shuffle button in iPod, white blue white blue. I have maintained a reference to the UIButtonItem // interface UIBu...

UITableView is crashing when trying to edit cell

Hi Guys, I am having some form in that is consisting of 5 custom cells in a table view. Here is the code: - (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView { return 1;} \- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section { return 5; } \- (UITableViewCell *)tableView:(U...

Not calling the function when I click on UIButton?

I have an imageView and after i add it to the screen I release it. Before that I adds a button onto it with this code. button = [[UIButton buttonWithType:UIButtonTypeCustom] retain]; button.frame = CGRectMake(128.00, 128.00, 23.00, 40.00); [button setBackgroundImage:[UIImage imageNamed:@"move.png"] forState:UIControlStateNorma...