I'm trying to figure out programmatically if a particular tab bar item in my app has a badge.
While I'm debugging, visually, I can plainly see that it does. But when I run this code in the viewController in question:
UITabBarItem* thisVCsTabBarItem = self.tabBarItem;
NSString* badgeValue = thisVCsTabBarItem.badgeValue;
...badgeValue ...
I'm loading data dynamically from an API using a UISearchBar and trying to display it, using something like this:
- (void)searchBarSearchButtonClicked:(UISearchBar *)searchBar
{
[searchBar resignFirstResponder];
NSLog(@"Search Text: %@",[searchBar text]);
[self startSearchingWithText:[searchBar text]];
}
- (void) startSearch...
The iPhone is attached to a Mac runnning the latest iTunes version and I am 100% sure that her UDID is in the provisioning file. Her iPhone has not been jailbroken and we even restored it to factory settings.
I am having trouble installing our development build on this one iPhone. The error is:
the application "[Application Name]"...
I'm pretty sure I saw an example where the graph wasn't filling the whole iPhone screen, but I can't get that to happen in my app, nor in the Core-Plot Test app from Switch On The Code.
I've added a subview to the original CPLayerHostingView in the sample, then changed the classes – original back to UIView, new subview to CPLayerHosting...
Any idea how to go about formatting the data so I can export from my app data in excel format or even a simple table would be okay, how are people getting stuff out of the phone?
This particular app is about keeping track of money, so i can pretty much turn everything into nsstrings but how do I:
A. format the strings so the fields ar...
I Have an UITabbar app with an imbedded Navigation Controller which is loading table views.
I would like to add a mini toolbar beneath the navigation bar, with a segmented control to sort table data by group or by name.
I have tried this with interface builder, trying to add the toolbar to both the table view controller and the navigat...
I have two views: one has just a button (view 1) and the other contains a tableview with a search bar (screen2). When the user clicks that button in view 1, I want view 1 to flip and display screen 2.
View 2 resides inside of the navigational controller with a navigation bar on top.
Below is what I have for now. The transition animati...
I'm just starting out with Core Data and I have an iPhone Core Data project set up in a master-detail view system. The master view contains items, and the detail view lets you edit the properties of the selected item.
I'm looking for the best options in order to implement the editing. Would I pass along the NSManagedObjectContext to the...
Hi,
What is the CGMutablePathRef equivalent of CGContextSetLineJoin? CGContextSetLineJoin works directly on the graphics context, so requires a CGContextRef parameter, which I do not have since I'm working with CGMutablePathRef. I can't find anything in CGPath.h that does CGContextSetLineJoin's job.
Thank you.
...
UITableViewController seems to always hijack the View link in IB. So, if I put UITableView in a UIView and link up the View to that UIView, it still doesn't work. Only the UITableView is shown.
What I'd like to do is use a UITableViewController and put some labels on top of the uiTableView that can be hidden.. Like loading.. and No resu...
Dear all,
I am trying to build an iPhone application that has a Tab bar as the root controller and several navigation bars. My doubt is, shall I create one NavigationBarController class for each navigation bar that I want to put in the application? Or is it possible to create only a single navigation controller that manages all the navi...
I am using in my application volume setting that when we want we mute volume of my application how this is possible plz tell me with code.
...
Hey ,
In my application I have one Entry form in which there are six Text fields
Name :UITextField
Date of Birth :UITExtField
Age:UITextField
Address :UITextField
Phone No :UITextField
Image : UIIMageView
Now What I want is that I want all these fields value in the same fields of other ViewController class. How it could be possible ...
Hi,
I want to customize my UIBarButtonItem's appearance. Here's the code I'm currently using:
UIButton *button = [[UIButton alloc] initWithFrame:CGRectMake(267, 6, 48, 30)];
[editButton setCustomView:button]; // editButton is the UIBarButtonItem
Unfortunately, the UIButton does not get drawn, i.e. it's 100% transparent.
I know the b...
Hi,
Anyone know of any library that will enable me to read/write RTF format files on the iPhone? NSAttributedString would be the way to go - but since that isn't available just yet :-(
Essentially I need to convert between simple text and RTF.
Thanks for your help.
Craig
...
I have a high scores table in my game. When the game is over, the score is shown on the screen and it gets inserted into the high scores table. I want to know how to compare the new score to the highest score in the table so I can let the user know if they achieved a high score. Below I included the code I use to update and insert the ...
NSURL *url = [NSURL URLWithString:@"http://ip/login"];
NSMutableURLRequest *request = [[NSMutableURLRequest alloc]initWithURL: url];
NSString *body = [NSString stringWithFormat: @"name=%@&pass=%@", @"phpxiaoxin", @"86f7e437faa5a7fce15d1ddcb9eaeaea377667b8"];
[request setHTTPBody: [body dataUsingEncoding: NSUTF8StringEncoding]];
[request ...
kSBCanvas is a SBCanvas, which is a subclass of UIImageView. It has a few UIImageView subviews. It all renders great to the iPhone screen.
I need composite the kSBCanvas and its subviews to an imageview that I want to write to disk.
I do the following:
UIGraphicsBeginImageContext(kSBCanvas.bounds.size);
[kSBCanvas drawRect: [kSBCa...
Hey guys,
I found the function below :
CFStringCapitalize
"Changes the first character in each word of a string to uppercase (if it is a lowercase alphabetical character)."
void CFStringCapitalize (
CFMutableStringRef theString,
CFLocaleRef locale
);
Does anyone know how to use it with my NSMutableString ?
Thank you,
Gaut...
I'm writing an app for my father's business, it involves lists, however, I have seen that it seems to reorganize the list, even though I don't want it to. For example, all of section 1 is supposed to say one thing, when I scroll down, content from the other sections is put in section 1's cells, this goes for the other sections as well.
...