Hi,
I in my AppDelegate, I use:
ActivitiesViewController *acController = [[ActivitiesViewController alloc] initWithNibName:@"ActivitiesView" bundle:[NSBundle mainBundle]];
UINavigationController *acNavController = [[UINavigationController alloc] initWithRootViewController:acController];
[self.tabBarController setSelectedIndex:0...
I'm getting this error message when I Build&Go:
*** Terminating app due to uncaught exception
'NSInvalidArgumentException', reason:
'-[UIViewController
_loadViewFromNibNamed:bundle:] was unable to load a nib named
"TestappViewController"'
I created a blank new project and then started to create a RootViewController which ho...
How could I make sure that iPhone doesn't disable the screen or go to sleep for about 20 to 30 minutes?
...
They say:
// Release any retained subviews of
the main view. // e.g. self.myOutlet =
nil;
I've never seen that previously. so I wonder if they talk about nib outlets here?
...
I have a UIViewController subclass called TripViewController. This class has the following method:
- (void)lockScreen {
LockOverlay *lockOverlay = [[LockOverlay alloc] init];
[self presentModalViewController: lockOverlay animated:YES];
}
LockOverlay is also a UIViewController subclass, defined as follows (the rest of the code is j...
I have tried this:
CGRectMake(0.0f, kFooBarHeight, 100.0f, 10.0f);
I get an error "unexpected ';' before ')'", and "too few arguments for CGRectMake". When I exchange this with:
CGFloat foo = kFooBarHeight;
CGRectMake(0.0f, foo, 100.0f, 10.0f);
then all is fine. Are constants not suitable to pass along as parameters?
...
I have a class that I've made into a singleton and am able to save it's state using an NSKeyedArchiver, but I can't wrap my head around pulling it's state back out.
In the function that does the loading I have
Venue *venue = [Venue sharedVenue];
NSData *data = [[NSMutableData alloc] initWithContentsOfFile:[self dataFilePath]];
NSKeyedU...
I think a value of 1.0 represents one second, but I'm not very sure with that. Is that a hexadecimal system? What would you provide to give exactly one minute for duration?
...
I have implemented a slider bar type UI control, like the Unlock mechanism on the iPhone.
When the touchesEnded method gets called, I return the slider to it's starting position. Instead, I would like to animate its move back to it's starting position.
The code should be something like this, but it doesn't work. What am I doing wrong h...
I have a block of content (stored in XML) that I want to put in a UIScrollView. Certain parts of this text will be formatted with different fonts, sizes, and colors. Altogether, it mostly reads as a paragraph with word wrapping.
I've built my NSXMLParser code, and I have separated all the data. I'm ready to apply my decorations and...
I have created a basic unlock slider like you use to unlock the iPhone.
In my touchesEnded function, I use an animation to move the slider back to home.
The first time the user moves the slider (and doesn't actually hit the end to unlock), the animation works fine and the slider moves back to home.
However, the next time the user trie...
I am rotating a view with this:
CGAffineTransform rotatedTransform = CGAffineTransformRotate(CGAffineTransformIdentity, rotationValue);
I have an object which I want to spin around for about 320 degrees. Now Core Animation is clever and just rotates it as much as needed, doing that by rotating it with -40 degrees. So the object rotate...
Is it possible to access and/or set general iPhone system settings like "WiFi On/Off" etc?
...
Hey hope someone can help as I am at my wits end with this!?
I have a UISlider. I would like it to move as progress of a task takes place (playing music).
Im setting its value as the continues events happen. (progress through the track)
-(void)updateSlider:(float)value {
NSLog(@" %f ",value);
[timeIndexSlider setValue: value ...
Hi,
with fw 2.2 i was able to get a screenshot using the private method _createCGImageRefRepresentationInFrame of UIWindow. In 3.0 doesn't exist anymore.
I used that method with the PLCameraView over a window to take a small video just by get as much screenshot as possible. Now i tried with the CALayer of the PLPreviewView and -renderIn...
Does anyone know if it's possible to remove the topbar from a UITableView in code? So in this case, remove the "Books" bar?
...
I have some nested views like this:
First, there is an big UIView. Inside this, there is another UIView. And inside this, there is an MyNiceButtons class that inherits from UIView. So I have:
UIView > UIView > MyNiceButtons (= an UIView).
In detail, the UIView creates an UIImageView and adds it as a child view to itself, which repres...
I'm trying to call Calendar from my simple application in iPhone. all sample out there give me a clue to use UIApplication#openURL function. How about if i want to open a calendar with/without a new event?
'[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"tel://8004664411"]];'
...
Ok so i am realllly new to the iphone development and i've gotten pretty far for my knowledge. I just need help deciding how to program these 4-6 pictures into my project.
I basically want to make a comic book with the user being able to swipe from one picture to another. Should all these picture be in UIVIEW or UIViewController?
and...
#import "MyViewController.h"
@implementation MyViewController
@synthesize menuView, gameView, helpView, optionsView, gameButton, helpButton, optionsButton;
- (void) viewDidLoad {
[self setView:menuView];
}
- (IBAction)gotoGame {
[UIView beginAnimations:@"buttonSlide" context: nil];
[UIView setAnimationDuration:1.5];
[UIView setAnimat...