I would like to have a view (Hierarchy structure) under Navigation Controller (the top blue navigation bar) that has a TabBar (the black one in the bottom part) to show additional views (each for tab) at the same level.
If you select one of theese views (black tab bar) you should always have the TabBar visible to jump to another view ...
Hi all!
I'm making an application which uses an UITextView. Now I want the UITextView to have a placeholder similar to the one you can set for an UITextField.
Does anyone know how to do this?
Thanks in advance.
...
Hello Stacked-Experts!
My question: How to generate a string from a CLLocationDegrees value?
Failed attempts:
1. NSLog(@"Value: %f", currentLocation.coordinate.latitude); //Tried with all NSLog specifiers.
2. NSNumber *tmp = [[NSNumber alloc] initWithDouble:currentLocation.coordinate.latitude];
3. NSString *tmp = [[NSString alloc] ini...
I always thought it's double, until I accidently hit floo+ESC and it told me there is a floorl(<#long double #>) function. So long double is the solution to all big inaccuracy problems? ;-)
Or is there even something more precise than that?
...
I am loading a splash screen when my app starts. Then I want to load a TabBarController and it's ViewControllers. However, my TabBarController window does not scale to the screen size.
Probably 3/4 of the TabBar at the bottom is getting cut off and There is a slim aprox 20 pixel gap at the top of the screen below the status bar. ...
I wonder what's the point of NSDecimalNumber. It offers some arithmetics methods, but why should I use NSDecimalNumber and not just double or NSNumber? Did apple take care of some floating point arithmetics uglyness there? Would it make life easier when making heavy use of high precision and big floating point maths?
...
Hi, I'm trying to use the functionality of the example iPhone app AQOfflineRenderTest in my app (this app specifically isn't important, I just thought it worth mentioning). I have a C++ file with method called:
void DoAQOfflineRender(CFURLRef sourceURL, CFURLRef destinationURL)
I'm trying to call this from my Cocoa Objective-C c...
I am adding a viewController to a TabBarController. When I add a ViewController from the custom class and Nib, it''s icon does not show up in the tabBar.
If I initialize like this the icon does not show up.
viewController = [[FlashCardViewController alloc] initWithNibName:@"FlashCardViewController" bundle:[NSBundle mainBundle]];
Bu...
An [ApplicationName]-Info.plist file is created with every new iPhone SDK project. My question: is it conventional to add custom property keys to Info.plist and access them programmatically or should they be created in a separate plist?
Perhaps it doesn't much matter, but using the bundle descriptor plist for my custom attributes feels...
Does anybody know how:
add small gradient to bottom of each UITableViewCell to visually highlight separation between cells
and at the same time make each second cell in table a bit darker then the each first row.
A great example of that stuff is Tweetie app. When you tap on your twitter account name you'll see table view with twitts....
I have a TabBarController with 4 viewControllers - one of them is called FlashController.
From within the FlashController.m code, how do I switch to one of the other controllers in myTabBarController? Is there a way to access FlashController's container or parent?
The TabBarController is not referenced anywhere in the FlashControlle...
Hoping someone can help me with this as I've done some scratching & searching I'm still overlooking something obvious... I've defined a simple enumerated data type:
typedef enum {
kLow = -1,
kMid,
kHigh
} MyMode;
And made an instance variable of this type in my ClassA:
@interface ClassA : UIView {
MyMode myMode;
}
@p...
Is there a way to track UIViewController transitions? As part of analytics, I would like to measure how long the user spends in each UIViewController without adding the code to all the controllers.
...
I tried to assign a very small number to a double value, like so:
double verySmall = 0.000000001;
9 fractional digits. For some reason, when I multiplicate this value by 10, I get something like 0.000000007. I slighly remember there were problems writing big numbers like this in plain text into source code. Do I have to wrap it in som...
Hello,
can someone please give me a hint, how I can convert any that a user can enter into a TextField or select from within the Adreebook into a given format?
The Webservice I user wants all Number in a specific format. For Example:
+49 (123) 456789456 must be 49123456789456
0049 (123) 456789456 must be 49123456789456
+49 123 456789...
Hello,
for my iPhone Project, I woud love to use the TTpickerTextField from Three20 to let the User select a contact from the Addressbook. While I’m really new to cocoa, I don’t understand how to use the Addressbook as a DataSource. As far as I understand, I have to create my own DataSource, that means, get every entry from the Addressb...
I have a some doubles that I want to port into NSDecimalNumber, because I'm getting too bad floating-point arithmetic errors with them.
They are:
double one = 0.0000001;
double two = 1000000000.0000001;
They are very problematic, but I hope that NSDecimalNumber can help out to get calculations right. I'm not that big math genius, so ...
I have a CGFloat that contains only "integers", in the meaning that it actually wants to represent integers only but due to float inprecision it may happen that it internally has a 23.00000000000000000000000142 or something like that. I try to feed an NSDecimalNumber with clean input, so I need to make sure this is truly a naked integer ...
I think NSInteger, but maybe there's something that can hold larger values? How big can the number be?
...
I'm fairly new to Cocoa. I was talking to my brother, who's put together a few iPhone apps, and I said something about Interface Builder. He said that he doesn't use it - he builds his UIs programmatically. He said that this way, he doesn't have to worry about loading the NIB. I understand that using Interface Builder actually creates in...