Comment by Burhanuddin Sunelwala on Two files with same name
Yes. The project is in Swift.
View ArticleComment by Burhanuddin Sunelwala on Text jumps down in UITextField when editing
can you post a screentshot?
View ArticleComment by Burhanuddin Sunelwala on Maximum path cost in matrix
How do you find max cost for each element?
View ArticleComment by Burhanuddin Sunelwala on Hanging (Freezing) issue...
The issue was that are too many views in the app. there are many internal views from the iOS framework itself. For example, if you initialize a UISearchBar, the UISearchBar itself have a UITextField, a...
View ArticleComment by Burhanuddin Sunelwala on How to present a ViewController modally...
@Koen Yes, this is there. Definitely! But can I achieve something from inside B, directly?
View ArticleComment by Burhanuddin Sunelwala on How to filter two Dictionaries with...
a2 is just a variable which is nothing but the dictionary in array2. Wait I will modify the answer so you have a better understanding.
View ArticleComment by Burhanuddin Sunelwala on How to do some stuff in viewDidAppear...
@rmaddy what is the swift solution for Inder's answer?
View ArticleComment by Burhanuddin Sunelwala on How to do some stuff in viewDidAppear...
@InderKumarRathore What is the swift solution for this?
View ArticleComment by Burhanuddin Sunelwala on Why calling super from protocol gives an...
if we replace super with self then I have to implement the init() function in each UIViewController which conforms to this protocol.
View ArticleComment by Burhanuddin Sunelwala on Package manifest at '/Package.swift'...
Getting the same issue.
View ArticleTwo UILabels like UITableViewCellRightDetail using UIStackView
I have a Horizontal UIStackView with two UILabels. I need it to be styled like UITableViewCellRightDetail.The first Label (on the left) should have more priority in resizing.Here is the example:I need...
View ArticleAnswer by Burhanuddin Sunelwala for NMACoreRouter calculateRouteWithStops no...
Found the solution!You need to declare NMACoreRouter object as a class variable.class <Class_Name> { var coreRouter: NMACoreRouter! func <Your_Function>() { coreRoute = NMACoreRouter() let...
View ArticleiOS 10.3 UISegmentedControl setTitleTextAttributes Crash
iOS 10.3 crashes on UISegmentedControl's setTitleTextAttributes method. Question:What is the reason for the crash?What is the solution?Note: Have already reported this issue to apple, but haven't yet...
View ArticleAnswer by Burhanuddin Sunelwala for Add multiple stops to Google navigation...
Well we need to append to: parameter for each location. The url scheme will be as follows:from your current locationcomgooglemaps://?daddr=Lat,Lon+to:Lat,Lon+to:Lat,Lon+to:...if you have source...
View ArticleAdd multiple stops to Google navigation using Universal URL schemes
Is there a way to launch Google Maps app on iOS with multiple stops using Google Maps URL Scheme?
View ArticleArrayType in extension where clause
extension Array where Element: _ArrayType, Element.Generator.Element: Any { func transpose() -> [Element] { if self.isEmpty { return [Element]() } let count = self[0].count var out =...
View ArticleDictation button outside the keyboard
Is there a way to perform dictation on click of a button outside the iOS keyboard. For ex: I have a UITextField with microphone button right. On the click of this button, it should open the same...
View ArticleAnswer by Burhanuddin Sunelwala for show alertController from a custom class
Well you just need to find the topmost view controller and present the alertcontroller from there.UIViewController *topController = [UIApplication sharedApplication].keyWindow.rootViewController;while...
View ArticleHow to make google links (or any other links) to open our app?
I am developing a mapping application and I want that whenever a user clicks a google map's link or any other links (except a link from my own domain), it should show an option to open in my app as...
View ArticleAnswer by Burhanuddin Sunelwala for Syntax to put a variable in a string in...
let variable = 123final let urlString = "https://ozsqiqjf.preview.infomaniak.website/empdata_\(variable).json"\(variable) is what you needORuse string formattinglet variable = 123final let urlString =...
View ArticleAnswer by Burhanuddin Sunelwala for What is the most reliable and fastest...
It only depends on how you want to ADD, STORE and REMOVE this data.First Let us go through each type of Data Structure that is available to us in Objective-C:Primitive ArrayThis is the most basic type...
View ArticleAnswer by Burhanuddin Sunelwala for Difference between...
These two are basically two very different methods.dequeReusableCellWithReuseIdentifier:Suppose that you have a list of articles to view. Say you have 50 articles. The screen won't show you all 50...
View ArticleStandard UITableViewCell with dynamic height
I want to know is it possible to have a standard UITableViewCell with style UITableViewCellStyleSubtitle having dynamic height? If yes, then how to achieve that?I do not want to customize and make a...
View ArticleHow to encrypt/decrypt a file in iOS?
I am storing a (.sqlite) in my documents folder. I need to encrypt this file, so that no one can directly access the file. Can this be achieved in iOS?
View ArticleAnswer by Burhanuddin Sunelwala for How to present a ViewController modally...
Well, I achieved it this way.Note: I am inside B.let cViewController = // getting a handle of this view controller from Storyboardlet aViewController =...
View ArticleAnswer by Burhanuddin Sunelwala for Declaring parameters of same type in a...
Well, that is not something which is built-in in Swift.But the most near to it you can use is Tuplesfunc floatValues(values: (CGFloat, CGFloat, CGFloat)) { first = values.0 second = values.1 third =...
View ArticleAnswer by Burhanuddin Sunelwala for ios / swift - I can't append tableview cell
class CustomPortController : UITableViewController { var tableList = [CustomPortVO]() var listSeparated = CustomPortVO() func getDur1Data(){… self.tableList.append(self.listSeparated)...
View ArticleChange Font for all UIAlertController in the app
How to change the font for all the UIAlertControllers in the app?Is there any way like how we do it for other UIElementsEx: UINavigationBar.appearance().titleTextAttributes = [.font:...
View ArticleAdd "newline" character in localizable.strings
How to add a newline character in localizable.strings?I tried putting \n, but no success.
View ArticleAnswer by Burhanuddin Sunelwala for Change UISearchBar cancel button text in...
Objective-C:[searchBar setValue:@"customString" forKey:@"_cancelButtonText"];Swift:searchBar.setValue("customString", forKey:"_cancelButtonText")
View ArticleAnswer by Burhanuddin Sunelwala for How to create AppStore.com short link?
Here is how you can have a short link.https://itunes.apple.com/app/id<Apple ID>Ex: https://itunes.apple.com/app/id375380948
View ArticleAnswer by Burhanuddin Sunelwala for Swift 3: Array to Dictionary?
On Swift 4, you can achieve this by using Dictionary'sgrouping:by: initializerFor ex: You have class named Aclass A { var name: String init(name: String) { self.name = name } // . // . // . // other...
View ArticleAnswer by Burhanuddin Sunelwala for Modifying UISearchBar Cancel button font...
A much better solution hereUIButton *cancelButton = [searchBar valueForKey:@"_cancelButton"];[cancelButton setTitleColor:[UIColor yourColor] forState:UIControlStateNormal];[cancelButton setTitle:@"Your...
View ArticleWhy calling super from protocol gives an error?
import UIKitpublic protocol NibInitializable { init()}extension NibInitializable where Self: UIViewController { public init() { super.init(nibName: String(describing: Self.self), bundle: Bundle(for:...
View ArticleFirst Baseline and Last Baseline Properties in UIStackView
What effect do the First Baseline and Last Baseline properties have on the subviews of a UIStackView? Generally, can someone please illustrate the implementation of these values?
View ArticleHow to have an initial state with no option selected with UIButton...
I have this particular codelet genderOptions = ["Male".localized, "Female".localized] .map { UIAction(title: $0, state: .off, handler: {_ in }) }genderButton.changesSelectionAsPrimaryAction =...
View Article