Hello all,
I have a UIViewController in which i have a UITextView added from interface builder.Now i want to push a view when i click on hyperlink or phone number. I am able to detect that which url is clicked using a method i found in stackoverflow. Here is the method
@interface UITextView (Override)
@end
@class WebView, WebFrame;
@pr...
I am new to iphone development.I have created a view based application.Now i want tab bar in that view.The first view of the tab bar is a table view and the second view is the Web-view.All the tutorials explain only tab bar based application.Since i am using view based application i finding it really hard.How to achieve it by using inter...
I've been playing around with ARkit [http://www.iphonear.org/][1]
ARKit comes with a demo project that implements everything in the AppDelegate and does not make use of separate ViewController files.
I have been trying to get the demo to work using a ViewController rather than just using the Delegate.
Has anyone done this successfully...
I have a question about tags for UIViews.
Is it possible to create your own tag like myview.tag="main" or something like that?
I'm asking because my views are created in code and not with a nib file. After the container view has loaded and an xml file is fully parsed I need to be able to get at the subviews and update values.
After a b...
I have a tab based application with 3 tabs. How do I go about completely closing the view controller of a specific tab when it is switched? It should start again when it starts again.
Thanks for the help.
...
Hi,
Here is a piece of code from the exploring the iPhone SDK book. It uses the example of 2 views. It checks to see which view is being used and will release the other one.
- (void)didReceiveMemoryWarning {
[super didReceiveMemoryWarning]; // Releases the view if it
// doesn't have a superview
// Release anything that's ...
Hello guys, I'm having a problem. I have a UIView, that looks like this :
In that view controller I implemented the "touchesBegan:withEvent:" method, but the method is only getting triggered when I touch the bar at the bottom of the view , nothing happens when I touch the table.
How could I change this behavior to be able to detect t...
My application has a tab bar, and in one tab I have a navigation controller.
I want to find the position of the center of the view that appears between the navigation bar and tab bar, so that I can display a UIActivityIndicatorView right in the middle of the view when stuff happens.
However, I'm getting different values of self.view.bo...
Hi there,
I've animated moving a UIView as follows:
CGRect rightPop = CGRectMake(167, 270, 142, 73);
[UIView beginAnimations:nil context:NULL];
[UIView beginAnimations:nil context:NULL];
[UIView setAnimationBeginsFromCurrentState:YES];
[UIView setAnimationDuration:0.4];
[rightToast setFrame:rightPop];
[UIView commitAnimations];...
I found this code to display a modal view:
- (void)add:(id)sender {
// Create the root view controller for the navigation controller
// The new view controller configures a Cancel and Done button for the
// navigation bar.
RecipeAddViewController *addController = [[RecipeAddViewController alloc]
initWi...
Is it invoked just before the main view is going to be shown
Can we call it whenever we want?
...
Hey
When I run my application it shows one warning message:
warning:passing argument 1 of 'presentModalViewController:animated'
from distinct objective - c type
How do I resolve this warning? I've used presentModalViewController:animated many times previously in my application.
Please help me.
Thanks in advance
...
Hi!
I'm loading a view controller like this:
[self presentModalViewController:webViewController animated:YES];
It works but when I call it a second time the view is the same (of course). I need to perform a selector after the modal view controller gets visible again. How can I do this?
Thanks
Philip
...
Hi
Is it possible to make a UIView (and any other subviews within it) set to an opacity of say 0.5 or whatever? Not sure if this is even possible, but want to ask.
...
I have main UIView where I display different data. Then I put a button, which displays subview like this:
- (IBAction) buttonClicked: (id) sender
{
UIView *newView = [[UIView alloc] initWithFrame:CGRectMake(25,25,50,20)];
UILabel *newLabel = [[UILabel alloc] initWithFrame:CGRectMake(25,25, 50,25)];
newLabel.text = @"some text";
...
I have two UIImageViews on my object, and I'm trying to animate them to page like a book. I used some of the built in animations for a while (UIViewAnimationTransitionFlipFromLeft/Right), and decided I could do better. I found a nice example for half of the animation I wanted here: http://fiftysixtysoftware.com/blog/2009/uiview-pageopen-...
Hi there,
I have an app that is built starting from a tab bar controller. It's possible for the user to bring up other screens that are loaded with:
[self.navigationController pushViewController:nextSCreen animated:YES];
The user travels several levels deep this way.
Eventually I want to be able to jump back to the original screen. ...
now sometimes things just don't work as expected.
my UIView has a method to add itself to a given parent view like this
-(void)showPanelInView:(UIView*)view
{
self.hidden = YES;
[view addSubview:self];
[UIView beginAnimations:@"categories_panel" context:NULL];
[UIView setAnimationBeginsFromCurrentState:YES];
[UIView setAnimatio...
I have a Tab Bar, with 2 tabs. When I click the first tab, it have a View showing "View 1", and I want add a button on "View 1", that can take me to a new full screen view "Full Screen View 1". also, in the "Full Screen View 1", it have a button to return to "view1", and exit full screen.
So, my question is how to implement these two b...
From UIView docs:
(void)insertSubview:(UIView *)view atIndex:(NSInteger)index
It's great that I can insert a UIView at a certain index, but I cannot find a way to READ what index a given UIView has.
I need to check whether the UIView is on top, or at the back ...
EDIT: Now that Brandon pointed out the order in the subviews array, I...