I am trying to add UiActivityStatus and Show a "Please Wait image' while presentModalViewController loads which takes 16 - 20 seconds...
The image shows up but then screen turns white right away and sits there for the 16-20 seconds. I am guessing the call to presentModalViewController returns right away.
Is there anyway around showing...
I want to build my iphone application only using device ID without connecting the device to my apple PC.Can i do this?If yes then how can i do that.
please give me some instruction on it.
...
Hi
I have a structure like this....
UITableViewController -> UITableViewCell -> UIView
I need the UIView to access a HashTable (NSMutableDictionary) in the UITableViewController
Is there a way to access the ViewController simply from the ViewCell (using [ViewCell superview] obviously won't work) ....Do I need to go down through the ...
In the AppDelegate of the BubbleLevel example from Apple they do something like this:
+ (void)initialize {
if ([self class] == [LevelAppDelegate class]) {
// Register a default value for the instrument calibration.
// This will be used if the user hasn't calibrated the instrument.
NSNumber *defaultCalibratio...
In the BubbleLevel example from apple they implement an +initialize method. They say:
+initialize is invoked before the
class receives any other messages, so
it is a good place to set up
application defaults
But when I try to look it up in the UIApplicationDelegate protocol documentation, they don't even mention that +initial...
Well I think to know what the App Delegate does. It has some nice methods like -applicationDidFinishLaunching which will be called when the app has finished launching, and so on. But what's that actually? Is that some object instantiated in the UIApplicationMain function?
And how does it work that every class in my app has access to tha...
i have a custom UIView class,and i have linked my view in IB with this class. in my own custom class, i have a function
-(void)replaceSubview:(UIView*)view1 withSubView:(UIView*)view2;
so in my viewcontroller, i have called this function like this way:
[self.view replaceSubview:view1 withSubview:view2];
however,the function wo...
Hi,
how an application can set a ringtone in iPhone?
Thanks in advance,
Etam.
...
I want to take several iphone projects that I wrote and combine them into one project. What's the easiest way to do this? I would like it if I could access all these projects from one button on the iphone home screen.
...
In Java you can suspend the current thread's execution for an amount of time using Thread.sleep(). Is there something like this in Objective C?
...
Hi to all
I am developing one application. In that I have toolbar on keyboard. But I want that when I press keys, the key values should be displayed in toolbar textfield.
So if anyone knows kindly reply.
...
When I select multiple lines of code and want to indent them as usual with TAB, it just deletes them all. I come from Eclipse where I always did it that way. How's that done in Xcode? I hope not line by line ;)
...
I've got an UIScrollView object where I want to implement some effects happening when the user is scrolling. Is there a way to invoke a method on my view controller class every time the user starts a scroll action or is scrolling?
What I need is also the current scrolling position. I am almost sure that there is something useful availab...
I've been looking for some concrete scenarios for when NSOperation on the iPhone is an ideal tool to use in an application. To my understanding, this is a wrapper around writing your own threaded code. I haven't seen any Apple demo apps using it, and I'm wondering if I'm missing out on a great tool instead of using NSThread.
The ideal s...
I'm having some images from which the user should choose one. Now I don't want to just offer an flat scrolling area with a boring grid. Instead, I'd like to show up a wheel that contains those images. At the top would be a marker indicating the selection. Something similar to the Pickers.
The problem is not the rotation stuff; I'd use s...
Hi
Im working on an iPhone application and want to represent money ($) amounts. I can't use float because they introduce certain amount of rounding errors.
What can I use?
Im thinking of defining my own Money class and store dollars and pennies as NSInteger internally.
@interface Money : NSObject {
//$10.25 is stored as dollas=10 ...
Say I have a large number (integer or float) like 12345 and I want it to look like 12,345.
How would I accomplish that?
I'm trying to do this for an iPhone app, so something in Objective-C or C would be nice.
...
I have a feeling that this is stupid question, but I'll ask anyway...
I have a collection of NSDictionary objects whose key/value pairs correspond to a custom class I've created, call it MyClass. Is there an easy or "best practice" method for me to basically do something like MyClass * instance = [ map NSDictionary properties to MyClass...
In my NiB, I have several View controllers. When the app launches, all their corresponding ViewDidLoad() calls are called.
in ViewControllerA, I have ViewA that contains a UiScrollView with 100 pictures. In initalize these pictures in ViewdidLoad. So on app launch, all pictures are initalized.
In my Main Menu View Controller, I have a ...
The UIKit reference says UIView is a superclass of UIWindow, but despite of this parentage, a UIWindow actually manages UIViews. This sounds so unusual to me.
Does anyone know what the significants of this are in terms of software design?
Many thanks.
EDIT:
I read the related paragraph in the iPhone programming guide. Yet I couldn't s...