I have an UITabBarController with two tabs:
UINavigationController
OptionsViewController : UIViewController
How can I reach data (ie. UILabel.text) set in OptionsViewController, in a new added modal View which has been invoked from UINavigationController?
Edit1:
Scenario: After launching app I select the second tab bar called "Opt...
I've put in this code:
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
UITableViewCell * tableCell = [self.tableView cellForRowAtIndexPath:indexPath];
tableCell.accessoryType = UITableViewCellAccessoryCheckmark;
[tableView deselectRowAtIndexPath:(NSIndexPath *)indexPath anim...
I'm trying to make an augmented reality application with a waypoint structure, like Yelp, and I'm wondering how to set up my main view so that it displays the camera view on the whole screen. I've heard of using the UIImagePickerController Class, but I'm unsure how to manipulate the code so that it doesn't actually take a picture, but ju...
E.g. what "Use Core Data for storage" checkbox option means when creating new Window or Navigation based project?
How to add Core Data for Tab Bar Application?
How to initialize managedObjectModel, managedObjectContext, persistentStoreCoordinator?
...
Hi,
I have following View COntroller structure:
ScrollViewController
LandscapeViewController
PortraitViewController
Each with its own .nib
The app starts in landscape mode where many landscape views are added to a scrollview. Each landscape view has its specific portrait view, so I have to assign like ID's to each of this views. Can ...
I have color values coming from the url data is like this, "#ff33cc". How can I convert this value into UIColor? I am attempting with the following lines of code. I am not getting the value for baseColor1 right. Looks like I should take that pound char off. Is there another way to do it?
NSScanner *scanner2 = [NSScanner scannerWithStrin...
didSelectViewController is not being fired when selectedIndex is set programmatically on UITabBarController object, when tapping manually everything works fine.
...
I want to the user to be able to search for a record in a DB. The fetch and the results returned work perfectly. I am having a hard time setting the UItableview to display the result tho. The application continually crashes at cellForRowAtIndexPath. Please, someone help before I have a heart attack over here. Thank you.
@implementation ...
Hey,
I want to converte a CGRect "aRect" of a object in a subview in UITableViewCell in UITable to CGRect with respect to self.view.
The problem is that aRect is with respect to the subview in the table cell.
But i want to make it so that it is with respect to self.view
What i tried is this
rect = [self.view convertRect:aRect.frame to...
Hi,
I must be missing something fundamental here. I have a UITableView inside of a NavigationViewController. When a table row is selected in the UITableView (using tableView:didSelectRowAtIndexPath:) I call pushViewController to display a different view controller. The new view controller appears correctly, but when I pop that view cont...
Having recently done some development for iPhone, I've come to notice an interesting design pattern used a lot in the iPhone SDK, regarding object mutability.
It seems the typical approach there is to define an immutable class NSFoo, and then derive from it a mutable descendant NSMutableFoo. Generally, the NSFoo class defines data membe...
Hi guys,
Firstly i'll preface by saying that i am a complete Cocoa touch/objective c noob (.Net dev having a dabble)
I have searched on Google as well as here but cannot seem to find an easy solution.
I have a UItabbarcontroller view with a UINavigationController inside its first tab
I have the root view for this UINavigationControll...
I'm developing a System Preference Pane that runs a background application. I'm planning on codesigning the background application and I'll be using the kill flag of codesign (http://gemma.apple.com/mac/library/documentation/Darwin/Reference/ManPages/man1/codesign.1.html). From my understanding, this kill flag will not allow the backgrou...
Coming from Java background I am guessing this is expected. I would really love to learn Objective-C and start developing Mac apps, but the syntax is just killing me.
For example:
-(void) setNumerator: (int) n
{
numerator = n;
}
What is that dash for and why is followed by void in parenthesis? I've never seen void in parenthesis...
I have a small Foundation application that checks a website and plays a sound if it sees a certain value. This application successfully plays a sound when I run it as my user from the Terminal.
I've configured this app to run as a LaunchDaemon, with the following plist:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//...
I have a UIViewController that contains a UITabbarController which contains a UINavigationController.
When I am setting up my IB outlets, what should the File's Owner view outlet be set to?
...
Is there a good UITabBarController example where it is NOT created in the appDelegate?
I would like to use a UITabBarController inside of a UIViewController, however dont know how to set the view outlet.
...
I have a UITabBarController that is loading a UINavigationController.
When I push a new view controller, is it possible to change the UITabBarController to a new set of tabs?
...
If I have a plist which I have put into and array, which looks something like this
-Root
-Item 0 Dictionary
Name String Henry
Kids Array
-Item 0 String Lindy
-Item 1 String Paul
-Item 1 Dictionary
Name String Janet
Pets ...
I am trying to create a NSMutableDictionary(dictA) with objectA. When I try to view my dictionary(NSLog), each key is pointing to the same address. I have an objectA_1 which is type objectA and used to setup the dictionary. Also, if I try to getObject, I always get the last key/value that was added to the dictionary. I tried setValue...