iphone

How to avoid superclass methods getting overridden by sub class in objective - c

Like in java: A final class cannot be subclassed. This is done for reasons of security and efficiency. Accordingly, many of the Java standard library classes are final, for example java.lang.System and java.lang.String. All methods in a final class are implicitly final. How can I achieve this behavior in objective-c? ...

Bump Technology Problem

Hello, i have a problem in my application, i have to send the data from 1 iPhone to another through Bump Api. But the problem is that both user have to be in same bump screen to share and i want to share data in any screen when they bump thier iPhones. So any body have any idea then please let me know. Thank you. ...

UINavigationBar height

In my app I work with an UINavigationController. I've added it to the window (MainWindow.xib, with IB) and simulated on my main view (in IB: Simulated User Elements / Top Bar / Navigation Bar). Navigation bar is displayed, but its height isn't standard. At least in IB it is bigger than in launched app. What's wrong? And how can I resto...

Is it possible to create different .xib files using a single class iphone sdk

Hi all, In my application,I need to load different .xib in different tableView cells depending upon the category of data which I'm getting from parser. I wanted to ask that is it possible to create different .xibs belonging to same class as it'll reduce the load as I have almost 13 categories so 13 .xib files. Thanks in advance. ...

UIPicker reloading content

Hi i have a problem with UIPicker, im keeping my Picker in Navigation controller. i want the Picker content to reload whenever the navigation controller push the PickerView. but the pickerview content maintaining same state in all navigation.. how to change this? ...

how to see console logs on iphone?

Hi, I developed an applications on gps functionality. I stuck up with some problem, i want to see the user location coordinates from the device. I kept NSLogs wherever its required for me, if i connect the device to mac and if i run i am able to see the logs in console, But in my requirement i have to roam to some other other locat...

Is ASIHTTPRequest allows resume download even after quit application and relaunch application ..?

hi i want to provide a resume option for user to download. if user quits application and relaunch it i want to resume from where it stooped ..... is ASIHTTPRequest allows this ... any one as idea on this if any idea.... Thanks in advance... ...

set Width & Height alone on Views in iPhone Development

Hey guys, I am working on an iPhone project where i need to change the width and height of a UIImageView dynamically. I have come across CGPointMake to change x & y positions alone, but what should i use for changing width & height alone??. There's something called CGSizeMake but i am not able to make it work. Can someone help...any idea...

how use google api in iphone to query hotels around my place

Hi, I am new to google apis and iphone LBS related apps. I need to know how to use a google api and get the list of hotels around my GPS location. Here the same functionality is achieved through javascript. how to do this on iphone application ? http://code.google.com/apis/ajax/playground/#localsearch_with_markers ...

Is there a way to write a NSTimer so it just pauses the program for a second?

Trying to change a button pic, wait a second, then change back. Not having much luck trying to get that to work, so is there a way to just pause the program for a second, without having a timer actually executing anything, and without the program going on with the code? ...

How to I make a navigation-based app?

Yes, I know, most of you are thinking I'm an idiot, butt (kidding) I'm not. I've been searching everywhere for something on how to fully make a navigation-based iphone app, but all I've found is how to set up table views or navigation controllers. I haven't found anything on how to create a data model (something simple from arrays and di...

How can I use the value of a variable from one class in another in Objective-C?

I am fairly new to Objective-C and have been doing some iPhone programming. Is it possible to look up the value of a variable in a different class? Basically what I am doing is running a function that exists in my application delegate from a view controller, but the application delegate needs to use a variable stored in the view contro...

set sleep time in iphone app.

Can anyone suggest me how to set sleep time in iphone application? so that after that time iphone goes in sleep mode. Thanks in advance. ...

Certificate in iPhone App

Hi, I'm working with iphone application and i want put it in my iphone. In xcode there is a overview "device - 3.1.3 | debug" but when i "build and go" the project there is an certificate error. I have download a certificate "mobileprovision" with a correct "Identifier" but i don't know how put it in my xcode project. Thanks and sorry f...

How to prevent view resizing/transform when UINavigationBar hides/shows

I have an application with a tab bar and a navigation bar. I push a view controller that is used to show photos, one at a time. It initially shows the bars and forward/back controls; after a delay, these hide, using setNavigationBarHidden:animated: and a custom transform (CGAffineTransformMakeTranslation) on the tab bar. This works, b...

Change color of the iPhone screen

Hi, I need to change the color of the iPhone screen when i touch on it. The only thing i need to do is to change the color of the area where i am touching. if i am placing a star on the screen as touch then only that area color will be changed. Any idea about this? Thanks in advance, SMAK ...

MPMoviePlayerController: I need some help rotating (autorotating or whatever) the movie when device turns upside-down

Hi all I'm having some trouble trying to apply rotation to the movie player while it's playing... When you see the IPhone's video player (the default you have in the operative system), you realize that whenever you turn the device upside-down, the player rotates too. I want to achieve exactly the same thing in my app, but I don't know...

How to autoresize the subviews for screen orientations in iPhone programmatically?

Hi, I have created a UIViewController class with a background color as red. I have also created a UIView which is a subview and placed with a background image and two UIButtons on them. The coding which i give for screen orientation is -(BOOL) shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation { retur...

Iphone Dev: Using one big image (sprite) for all uitableview cells

I have a table view with a list of categories and each category (understand table cell) has a different icon. I would like to use one big image (sprite) and render different part of the image (single icon) for each row. Any efficient ideas... ...

What is the best choiche of multiplayer game server engines for iPhone?

You know, I just want to create a game with lobby, chat, rooms, registration, etc. I've just googled it, and found only SmartFox. Seems promising, but is there any other? ...