It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 11 years ago.
Is there any way to turn a nsview in fullscreen in snow leopard ?
Something like this should work for you -
- (IBAction)enterFullScreen:(id)sender
{
NSDictionary *fullScreenOptions = [[NSDictionary dictionaryWithObject:[NSNumber numberWithInt:1] forKey:NSFullScreenModeAllScreens] retain];
BOOL fullScreenEnteredFlag = [fullScreenView enterFullScreenMode:[NSScreen mainScreen] withOptions:fullScreenOptions];
}
NSView has the following methods
– enterFullScreenMode:withOptions:
– exitFullScreenModeWithOptions:
– isInFullScreenMode
Related
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 9 years ago.
i want to a apply a page control section within one of my controllers and make an automatic slideshow from this. If you would like to see what i mean, look at the application - Goal.com app.
try like this I hope it'l helps you,
UIScrollView *scrollView;
-(void)animation{
[UIView animateWithDuration:0.4 delay:5 options:UIViewAnimationCurveLinear
animations:^{
[scrollView setContentOffset:CGPointMake(index*320, 0)];
}
completion:^(BOOL finished)
{
index++;
[self animation];
}];
}
in the above code index is an integer value for changing the scroll view offset and give the delay time whatever you want.
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
I want to build a application in xcode4 which will load a page in app inside.
I am following the bellow video
http://www.youtube.com/watch?v=yICZb91Poxs
Any help appreciated.
You create a project and in your .h you write :
#property (weak, nonatomic) IBOutlet UIWebView *webV;
Don't forget the #synthesize
And in your .m :
[webV loadRequest:[NSRLRequest requestWithURL:[NSURL URLWithString:#"google.fr"]]];
You can replace of course google.fr by another adress.
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
So I cannot find a checkbox in my Object Library. I only have a folder called Objects. How do I add the folder to the Object Library where the checkboxes are?
iOS does not supply a standard checkbox control. It supplies a switch (UISwitch) which does roughly the same thing as a checkbox, but looks different. Is that what you want?
Here's how to make a checkbox from a button (you need to connect the action to this method and also connect a property called checkboxout). Search SO for other examples, I just copied this from one of my programs. If this doesn't make sense then you should do some basic objective-c/xcode tutorials. (I hear Ray Wenderlich does good ones http://www.raywenderlich.com/)
Just so you know, Jonathan's answer is a better way to do things if you could possibly bring yourself to use a switch.
- (IBAction)checkbox:(id)sender
{
UIButton *b = checkboxout;
if (!boxChecked)
{
boxChecked = YES;
[b setImage:isCheck forState:UIControlStateNormal];
checkboxState = [NSNumber numberWithBool:boxChecked];
return;
}
if (boxChecked)
{
boxChecked = NO;
[b setImage:notCheck forState:UIControlStateNormal];
checkboxState = [NSNumber numberWithBool:boxChecked];
return;
}
}
//whatever your init method is for your view
{
isCheck = [UIImage imageNamed:#"checkbox_checked.png"];
notCheck = [UIImage imageNamed:#"checkbox_unchecked.png"];
//probably other stuff
}
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 9 years ago.
I found this great sample code about 'Switching Views with a UISegmentedControl'.
http://redartisan.com/blog?page=2
(sample code link : http://github.com/crafterm/SegmentedControlRevisited)
but this sample code is using xib. I want to re-coding it using storyboard (no xib).
Is anywhere similar sample code?
I did a little trick to be able to do that within the Storyboard.
I have a SplitView Controller with a Master and a Detail view. I created two simple View Controllers with size equal to Detail. Both of them have a Segmented Control with the same two buttons: First and Second. On each view, I added a label representing that View ("First View" and "Second View").
Then, on the first View, I select the "First" button and on the second View, I select the "Second" button.
After that, the only thing remaining is to create segues between them (First View goes to the second and the Second View goes to the First). The type of segue for both of them is "replace".
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
this a very basic question but i don't know how to make pop a view over the tabbarcontroller for exemple i got a tabbar and i got a 'add' baritembutton
and i want a view to come from down and don't see the tabbar anymore.
thx
Use presentModalViewController:
[yourTabBarController presentModalViewController:viewController animated:YES];
where viewController is the view controller you want to show
To remove the modal view controller use:
[yourTabBarController dismissModalViewControllerAnimated:YES];