Questions tagged [uivewcontroller]

35 questions
0
votes
2 answers

Unwind Segue from popup

I have UIViewController A, UIVC B, and A has a segue to B. (Using a button) B has an "OK" button that pops up a window, and once I click "Accept" in the pop up, I want it to return back to UIVC A, or back to be upon "Cancel". Now, the cancel part is…
MathEnthusiast
  • 101
  • 1
  • 10
0
votes
1 answer

How do I keep UI elements above a UIViewController and its presented ViewController?

I want to display some UI elements, like a search bar, on top of my app's first VC, and also on top of a second VC that it presents. My solution for this was to create a ContainerViewController, which calls…
Andrew
  • 7,693
  • 11
  • 43
  • 81
0
votes
2 answers

Custom delegate is not getting called?

Actually I have three view controllers named in my app. I am navigating from A to B and then B to C. I am calling delegate method from C which is implemented in A. here is my code for A.h #import "A.h" #import "C.h" In A.m I have @interface…
jaymala
  • 39
  • 8
0
votes
0 answers

In which case do you use UIViewController class with UITableViewDelegate/UITableViewDataSource protocols instead of straight UITableViewController?

I ask because I've just downloaded two example swift projects: one is a todo-list, the other is a contacts list, both use UIViewController class conformed to UITableViewDelegate/UITableViewDataSource protocols instead of UITableViewController. Is…
Fate Riddle
  • 364
  • 1
  • 3
  • 15
0
votes
1 answer

swift make label clickable in UIviewcontroller

i want label clickable to open url in safari , number in phone and email address in email when click override func viewDidLoad() { super.viewDidLoad() // DetailsSV.contentSize.height=1120 print("idis \(self.strUserid)") let ref =…
bashayr.m
  • 5
  • 2
0
votes
1 answer

warning: attempt to present whose view is not in the window hierarchy

I have a UITabView in UIViewController, all tab items are linked to other UIViewControllers. I have written a swift code of downloading a file through internet. when I select second tabItem, this code runs well, it downloads and previews the…
user3314286
  • 243
  • 3
  • 18
0
votes
1 answer

Pagination engine architecture - iOS

What would be best way to create a pagination engine architecture ? In my previous implementation I'd - UIViewController - property UITableView - with two sections in tableView. One for normal display and other - for PaginationCell -…
Tariq
  • 9,861
  • 12
  • 62
  • 103
0
votes
1 answer

Passing Data Between Custom Built UIViewControllers Value Became nil in iOS 9 working in iOS8

I created a custom UIViewController. @property (weak, nonatomic) NSArray *optionArray; -(VCSelectionViewController*) getPopoverViewControllerForTextField:(UITextField*)textField { UIViewController *buttonPopover = [[UIViewController alloc]…
JIANG
  • 1,687
  • 2
  • 19
  • 36
0
votes
1 answer

Handling view hierarchy in objective-C

I am new to iOS development and I try to create an app that has a login view and after successful login it presents a tab bar menu with 3 items. Menu item 1: is the default one that appears when the tab bar is loaded. Menu item 2: is an application…
user9839468
  • 31
  • 1
  • 5
0
votes
1 answer

UISearchBar in a UIViewController crashing

I am having a weird crash when using UISearchBar. I have a view controller on a storyboard and everything works fine but as soon as a drag a UISearchBar in the view controller and then run the app, I get the following crash: * thread #1: tid =…
0
votes
2 answers

Setting EdgesForExtendedLayout:UIRectEdgeAll and Nav Bar translucent:NO

Is there a way to set EdgesForExtendedLayout:UIRectEdgeAll and Nav Bar translucent:NO at the same time. Right now, when I set EdgesForExtendedLayout:UIRectEdgeAll for my view controller and my navigationBar.translucent = NO, the view starts after…
Burhanuddin Sunelwala
  • 5,318
  • 3
  • 25
  • 51
0
votes
2 answers

iOS How to draw text in UIViewController

I'm feeling very stupid right now. I'm trying to draw text onto a UIViewController. I'm using Xcode 5 and started with a simple Single Page project, and have done nothing else except adding this code to the ViewController.m: - (void)viewDidLoad { …
wayneh
  • 4,393
  • 9
  • 35
  • 70
0
votes
3 answers

iOS - Present viewcontroller from another presented viewcontroller

I have 3 view controllers, A, B and C. B is presented on A. What I need is to present C on A when a button clicked on B and dismiss B. But I am unable to do so. Is there some workaround. Thanks for help.
Adnan
  • 5,025
  • 5
  • 25
  • 44
0
votes
2 answers

Presenting new view controller from alert view handler displays black screen

I have a PasswordViewController that prompts me if I enter the incorrect username or password, but I can't get it to load my AdminViewController when the Enter button is pressed; it brings up a black screen. PasswordViewController.h #import…
Elfuthark
  • 261
  • 1
  • 4
  • 17
0
votes
5 answers

UIViewController presented once when the app launches

A scree is the first page when the application launches. The user can only click on the accept & continue button to proceed. This page only appears once initially & when the user had clicked on the accept & continue button, this page doesn’t appear…
Sport
  • 8,570
  • 6
  • 46
  • 65