Quantcast
Browsing latest articles
Browse All 36 View Live

Comment by Burhanuddin Sunelwala on Two files with same name

Yes. The project is in Swift.

View Article


Comment by Burhanuddin Sunelwala on Text jumps down in UITextField when editing

can you post a screentshot?

View Article


Comment by Burhanuddin Sunelwala on Maximum path cost in matrix

How do you find max cost for each element?

View Article

Comment 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 Article

Comment 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 Article


Comment 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 Article

Comment by Burhanuddin Sunelwala on How to do some stuff in viewDidAppear...

@rmaddy what is the swift solution for Inder's answer?

View Article

Comment by Burhanuddin Sunelwala on How to do some stuff in viewDidAppear...

@InderKumarRathore What is the swift solution for this?

View Article


Comment 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 Article


Comment by Burhanuddin Sunelwala on Package manifest at '/Package.swift'...

Getting the same issue.

View Article

Image may be NSFW.
Clik here to view.

Two 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 Article

Answer 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 Article

iOS 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 Article


Answer 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 Article

Add 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 Article


Image may be NSFW.
Clik here to view.

ArrayType 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 Article

Dictation 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 Article


Answer 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 Article

How 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 Article

Answer 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 Article

Answer 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 Article


Answer 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 Article


Image may be NSFW.
Clik here to view.

Standard 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 Article

How 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 Article

Answer 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 Article


Answer 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 Article

Answer 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 Article

Change 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 Article

Add "newline" character in localizable.strings

How to add a newline character in localizable.strings?I tried putting \n, but no success.

View Article



Answer by Burhanuddin Sunelwala for Change UISearchBar cancel button text in...

Objective-C:[searchBar setValue:@"customString" forKey:@"_cancelButtonText"];Swift:searchBar.setValue("customString", forKey:"_cancelButtonText")

View Article

Answer 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 Article

Answer 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 Article

Answer 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 Article


Why 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 Article

First 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 Article

Image may be NSFW.
Clik here to view.

How 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

Browsing latest articles
Browse All 36 View Live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>