I have a viewcontroller(VC) in which I have created a button programatically. VC is having a series of other subviews. In the subview that comes very last in the hierarchy(CV),i have created a button,on tapping on it I want to disable the button that is added in the parent view controller(VC). I tried following some approaches but on trying to access the button created on parentviewcontroller(VC) from child view(CV) the button on parent view is getting deallocated and it is becoming nil.How can i solve this issue. Please help.(All my views are programatically created).
Disabling a uibutton in parentview controller after an action performed in its child view
73 Views Asked by Vork At
0
There are 0 best solutions below
Related Questions in IOS
- Overlapping UICollectionView in storyboard
- Cannot pod spec lint because of undeclared type errors
- Is the transactionReceipt data present in dataWithContentsOfURL?
- UIWebView Screen Fitting Issue
- ZXingObjC encoding issues
- iOS: None of the valid provisioning profiles allowed the specific entitlements
- How to hide "Now playing url" in control center
- CloudKit: Preventing Duplicate Records
- Slow performance on ipad erasing image
- Swift code with multiple NSDateFormatter - optimization
- iOS 8.3 Safari crashes on input type=file
- TTTTimeIntervalFormatter always returns strings in English
- How do I add multiple in app purchases in Swift Spritekit?
- Setup code for xibs in iOS. -awakFromNb:
- iOS Voice Over only reads out the title of any alert views
Related Questions in UIVIEWCONTROLLER
- Different storyboard's entry points depending on a parameter
- Labels properties changing in Xcode
- How can I modally present a UIViewController on another Storyboard that's embedded in a UINavigationController?
- iOS - Logout functionality
- How can I prevent the keyboard from covering up subviews on a UIViewController?
- Load a UIViewController with data from .plist
- Presenting a View Controller with a button in a UITableViewCell programmatically (Swift)
- why isnt my second view loading after transition?
- Implementing delegate methods in separate class
- Subclass as delegate of superclass
- Change UIWindow backgroundColor from UIViewController?
- IOS: Transition with modal ViewContorller
- viewControllers that doesn't appear
- passing data, still nil in the other ViewController
- calling parents viewcontroller method when dismissing child viewcontroller
Related Questions in DELEGATES
- Pass Data between two view controllers using 'Delegation' : Objective-C
- Akka actor invoked with a function delegate - is this bad practice?
- Declare conditional delegate methods in iOS
- JQuery not working after using append()
- Delegates in Navigation Controller
- swift custom UIAlertViewDelegate not work
- IBOutlet nil after closing NSWindow sheet - swift
- Delegate returning nil - Swift
- Implementing delegate methods in separate class
- swift: select dynamic table cell and either push or pop view controller depending on stack
- ios-Facebook login delegate method isn't working
- Xcode, have delegate method auto-include classes
- Subclass as delegate of superclass
- specify type of delegate parameter
- Delegate with generic list signature for passing data to another form
Related Questions in PROTOCOLS
- Objective-C Reference to object that implements protocol
- Declare conditional delegate methods in iOS
- Object initialization with protocol and class name in swift
- How to get file path in browser (using protocol or other method to get full path)
- call generic function without params
- Why do we send the length of a string in most of the currently protocols
- How to cast controller to a specific protocol instead of a class in Swift?
- Extending Swift's Dictionary to conform to Protocol that requires the use of subscript causes Linker Error
- Benefit of class inheritance, when you could use protocol extensions?
- NSObject class conforms to protocol contained in NSArray with Swift
- Assigning a variable from another class
- Swift protocol extension self reference issues with init
- Swift - Delegates - How do I link the protocol to the implemented delegate methods?
- How to hide the class' properties and methods when defining and using one protocol in the .h file for Objective-C?
- Configure asio context to use tls
Related Questions in NSNOTIFICATIONCENTER
- ViewController deinit after performing segue using Notification
- What is the proper use of NSNotificationCenter with ReactiveCocoa 3 and Swift?
- Why @selector can call a method which is declared in an implementation file?
- What is a "non-weak zeroing reference"
- On button action NSNotificationCenter Rises again the keyboard
- Dispatch group and NSNotification
- Issue while calling NSNotificationCenter
- How can I execute a method when the volume button is pressed?
- addObserver/removeObserver in viewWillAppear/viewWillDisappear
- Alternative to getting payload out of notification when user doesn't directly tap the notification?
- Disabling a uibutton in parentview controller after an action performed in its child view
- How do I know if an object can be weakly referenced?
- Having trouble converting an Obj-C observer to Swift syntax
- Is good to call selector method ViewWillAppear in NSNotificationCenter
- Swift2 iOS Reachability Class and NSNotificatonCenter not receiving broadcast
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?