Ios Questions
Ad
Axios method to update database field using vue.js and Laravel
I am working on an axios crud application with laravel and vue.js component. at the moment i'm getting "http422:
ModuleName-Swift.h file not found in xcode8
I'm trying to work on a mixed swift and objectivec project with no luck. my project is made of 6 targets: app
Xcode 8 with mixed Swift and Objective-c project generated "ModuleName-Swift.h" header not found
I have a project with mixed swift and objective-c in xcode 8 that uses the generated "modulename-swift.h" header file to import swift into
XCode cannot find auto-generated swift header moduleName-Swift.h in pch file in duplicate target
I duplicated a target and get the following build error: resource/prefix.pch:16:13: '<modulename>-swift.h' file not found
How to get Application id(package + modulename) delphi XE5/XE6/XE7
Is there a way to get the application id in runtime for android and ios in delphi xe7? for android you can see the application id at:
How to read input with c++ using program.exe < text.txt
I have to read input according to these rules: "the input consists of several lines of text. some lines may be empty. the
Auth header not being set with Axios PUT request
I am trying to set the header in an axios put request with my auth token, but when i view the call on the server (running my ui app
React - pass id from state on client to axios.get on express server
I am trying to pass the id from my react app to axios.get on the server side (express) so i get this: //get
React Native Barcode Generator
I'm currently building a react native mobile apps and need to generate a barcode based on some
How correctly store data with laravel vue axios
I'm trying to send data to database from a vue component. the vue component ...<form>
Ad
I can't set the BackgroundColor of a StackView in iOS 12 or older
I'm trying to set a backgroundcolor of a stackview and it works on ios 13 or newer, but on ios 12 it's a complete failure. maybe it's related to
Merge Array of String - No exact matches in call to subscript
I'm getting an xcode error global function 'zip' requires that 'string.element' (aka 'character') conform to 'sequence'
Swift -Increase Float Value
I have a uislider that has min value of 0 and a max value of 1. when it stops it can be any number such as
Flutter how can i use colorful icon
I have a brandbutton widget. its simply holding login buttons with brands. it has icon , label and some colors. in apple i can use
Flutter how can i change floating label position?
I have a simple login form. but i want to change floating label position. i dont want floating label go on border. for make it more clear : its
Precision issue when computing weight range given BMI range in Swift
I am making a bmi app. i have this code: enum mathhelper { static func computebmi(kg: decimal, cm: decimal) -> decimal {
Transparent section header?
I'm creating a transparent list with transparent rows and section headers. but as soon as the rows slide under the section
NSDateFormatter, am I doing something wrong or is this a bug?
I'm trying to print out the date in a certain format: nsdate *today = [[nsdate alloc] init]; nsdateformatter *dateformatter =
React Native Expo Flatlist pull to refresh gesture not triggering on iOS but works fine on Android
I have a flatlist component rendered inside a flex: 1 view, that doesn't perform pull to refresh on ios. the gesture itself doesn't work, as the
Steps to develop an iOS app to open PSL files?
In this project i've to develop an ios application which reads the .psl files and arranges the data in the relevant section. for eg: the inbox
stop re rendering after promise is fulfilled
This is a simple app in react that fetch the data from the nasa api.div tag is re rendering continuously (like infinite loop) is there be any
Ad
How to catch network errors with Axios request interceptor?
Our vue application had some problems and i noticed in sentry logs that probably the network has been unreliable: error: network
Testing axios.create() instance with jest
I tried many solution from this task. i want testing axios instance api call without any libralies (jest-axios-mock, moaxios, msw, etc). i hope
SwiftUI when can i use if statement in result builder?
I notice that sometimes i am able to use if-else statement in swiftui's result builder just fine. for example, inside a body:
Swift generics in protocols
What is an appropriate way to solve the following example with swift? i know because of type erasure that you cannot assign
Protocol-Delegate pattern not notifying View Controller
My model saves data to firestore. once that data is saved, i'd like it to alert my viewcontroller so that a function can
I want to make an app in flutter. Can following features be implemented in android and iOS related to call?
if any unknown number call on my phone, the phone should not ring usually it will when contact is saved. can the unknown
SwiftUI open a new View on link click inside of WKWebView
I would like to open a new view in swfitui (webview) after clicking on a link inside of wkwebview, i do not know how to do. i understand that you
Xcode, iOS app - How to disable iPad and Mac compatibility?
I want to release my first ios app on app store. i would like to make it ios only. without an option to download and run on ipad and mac.
`warn_for_unused_master_specs_repo => false` causes syntax errors
Recently i've been working on two ios projects. one of them has source commands in the podfile, and the other doesn't. the podfile
how to call a closure with argument in a function
Func test(clo: @escaping (string)->void) { clo($0) } it return an error that says : anonymous
Is it possible to add the contact to the users address book by scaning QR Code?
My app can generate qrcode. i want to share it with another person. is it possible to generate qrcode with some user information? and when
Ad
Simple Question about Delegate and View Controllers
I have viewconta (parent) and viewcontb (is a child from viewconta) viewconta listen from firebase when user data change, so instantly i
Is the layout of the code via CGRect correct?
Is it right to make the interface via cgrect? i hardly use constraints. for the most part, my interface consists of labels spread across the
Example for using iOS 15's new ConfigurationUpdateHandler for a UIButton in Objective-C
I want to try out the new uibuttonconfigurationupdatehandler that's available in ios 15 to create a toggle button. there are lots of very nice
SwiftUI how to force a divider for navigation bar in NavigationView
My app has simple navigation logic using navigation view. i use the inline style navigation bar: mainview
What is the syntax for this closure for fetchDatabaseChangesResultBlock?
Ios cloudkit fetchdatabasechangesoperation() has a closure block defined as: fetchdatabasechangesresultblock: ((_ operationresult:
Property wrapper: change empty to Optional
I've created the following extension: import foundation extension collection { ///
How to populate custom header/footer view when using RxDatasources for datasource
I am using rxdatasources to create my datasource. later on, i configure cells in my view controller. the thing is, cause
How to check if a nsdictionary key has values or not?
I am using the following code for(nsdictionary* key in [tags valueforkey:@"data"]) { if ([[key
How can I publish an app for both iOS and macOS?
I’m working on an iphone/ipad app exclusively with objective-c files. is there a way to build a mac app without having to duplicate many
TableView Not Updating After todo Is Added To Array
I am trying to create a todo app in swift. but there is a problem. when someone presses the addtodo button, it adds todo to the todos array. then
CoreData Entity to Model
I do get a json and parse it to my model. in order to use this data while i am offline, i do store it using core data. for this, i created an
Ad
How to compress data
I'm trying to compress data to improve the space complexity, but i'm not sure if i'm incorrectly compressing data or incorrectly measuring the
Passing data to Segment control from Table view Cell
I am using table view cell to display the data . i have a segment control . in first section i am displaying the list of the move with button
SwiftUI: @State variable does not update View when its value changes (within same View)
I am very new to swiftui. maybe i am not completely understanding how @state annotated variables work. as far as i know, when you update their
Is there any package for building app for IOS on windows?
I want to make my game engine for mobile platform (android and ios) and i looking for suitable packages for it. if everything is clear with the
How to Delegate from Parent to Multiple Different Childs?
I have this scheme: homecontroller navigationcontroller step1 (child of navigationcontroller) step2 (child
Cannot use instance member 'service' within property initializer; property initializers run before 'self' is available
Im trying to get longitude and latitude from struct gservice and set it on a map. but can't initialize @state var region, because of
How to set a custom icon to an IOS push notification?
I'm currently adding notifications to my flutter app for ios, i wanted to add something similar to a largeicon on android, so far i
Is there a penalty for too many failed Firebase Auth login attempts?
Is there a penalty by firebase for too many failed email/password auth login attempts? i have a mechanism in place to disable logins if the end
Class or View isn't updating
Basically, i have a class which fetches profile info from firestore, but when i edit the profile and submit the changes and return to the profile
Option request fails with 404
I am trying to send a get request from my frontend to an api application. both are running on my local machine. this is how it's built right
Axios request in Vue.js method working when launched from "mounted()" but not when launched from html <form>
When i authenticate to laravel passport backend with nuxt.js like below, it works and i get a token:
Ad
Creating a global multi dimensional array Swift 4
I am trying to save data "productid" as int, "quantity" as int, "price" as double in a global array in swift 4. each productid key should
Swift HTTP Post Request returns HTML of site instead of JSON response
I am trying to reach a site that should take the username and password given and return a json which contains information stating whether or not
IOS - How to create Facebook reaction bar with blur background?
Although it may not be the week to replicate some design of facebook, i would like to be able to design my own version of the reaction indicator
How to get App name in UITesting swift 4 iOS
I tried to get my app name in uitesting. i tried the code below: let appname = bundle.main.object(forinfodictionarykey:
How to get all values from dictionary in ordered manner
I am getting a json like this : { "count": { "2018-03-26 07": 4, "2018-03-26 08": 21, "2018-03-26
How to use Namespace in SocketIOClient in swift
I am using latest version of socketioclient (13.1.1). how to emit or listen using namespace.
Swift4 - Pagination
I'm new in developing ios app. still dont know much. i successfully can display the articles well from first page only but fail to show other
Swift - Reach Personal Documents
I research some topics about ios personal data protection for app presentation. i can reach the document directory and upload all files from app
IQKeyboardManager for iOS 11 Xcode 9.2 Cannot build
I'm trying to integrate iqkeyboardmanager in my application. due to few existing constrains i can only drag and drop the library into my project.
dateFromString returning nil
I have a function to convert nsstring to nsdate. + (nsdate *)getnsdatefromstring:(nsstring *)strdate andformat:(nsstring *)format{
Understanding MVVM Architecture in iOS
I have few questions in order to understand the mvvm architecture for ios as below - how is model different from the view-model?
Ad
Custom UIButton : how to set background color on selection change?
I have created a custom uibutton and i want its background to be red when selected, otherwise white. so i tried this:
How to emit an event in Socket.io Swift4
I'm trying to emit an event when user join the chat room. so i have 2 classes: socketiomanager
How to change the allignment of a character in Attributed String
This is what i want to achieve.
How to change previously pressed UIButton label in UITableViewCell in OBJECTIVE C?
I have a tableview with one button (for play/pause) with two textfields. while click on play for cell1..the button text is play and the song is
How do I get the location (lat/lng) of a picture taken or a picture already taken
This may seem like a duplicate but the assets library framework (the current framework most answers are using for the same question) is deprecated
How to pass data from one UIView to another UIView with using only one ViewController in swift?
I'm creating a simple login form where the username from textfield should show up in the other uiview when clicking the login button. how
In App Purchase for existing Live App on App Store
We've built an ionic app for android and ios, android is working fine but for the ios app we came across an issue of implementing in-app
Direct initializing of a viewController
My desire output: i want to pass data with direct initializing of a second viewcontroller in my first vc :
iOS communication between to Child Controllers of Collection Controller
I am currently developing an app for ios written in swift and built an interface with a uipageviewcontroller and two child view
Dictionary get nil
What is wrong with xcode? get nil for key 9.0 @ibaction func slideraction(_ sender:
How to stub URLSession in Swift?
I have been following this
Ad
App Store allows only iOS 10 or newer when deployment target is set to iOS 8.0
I have set deployment target to ios 8.0 in both project and target settings (xcode 9.2, swift 4). everything builds fine and with my testing
Show a second ImageView on UIButton
I want to add an extra image on the uibutton if my condition is true. this means that if the result of my condition is: 1) "false", then
Keep UIStackView to be positioned exactly below, top UIStackView inside a proportional UIStackView
I have this one big customview, on which i have positioned one parent uistackview to contain two uistackviews.
UITableView crash after i implemented `estimatedHeightForRowAt indexPath`?
Func tableview(_ tableview: uitableview, estimatedheightforrowat indexpath: indexpath) -> cgfloat { let cellheight =
This app could not be installed at this time.Xcode 9.2
I have changed my application name and bundle identifier and now when i'm trying to run my app it is showing an error that this app could
Storyboard and AutoLayout: how to set UIView to use same aspect ratio as device?
With storyboard and autolayout constraints, is there a way to make a uiview use the same aspect ratio as the device? or is the only option
How to parse JSON using Alamofire 4.7 in Swift 4
I know this question was asked before, but answers were in swift 3 and using older versions of alamofire. problem: can't
Axios (or node) gets stuck if the petitions fails
I have the following code: import axios from "axios"; export async function get(url: string, n: number = 10) { let error; for
After Heroku deployment React client fails with Axios when specifying localhost
I have a react client and a node.js server. client on port 3000 , server on 5000. when i make requests from the client it looks
How to rewrite this cURL command to axios code
I need to call the propublica api the call example they have is using curl: -h "x-api-key: propublica_api_key"
Ad
Not able to get the sub collection data
I have on collection name > user doc id > sub collection > auto id > some data. i need to retrieve my "some
Authenticate using phone, username and password in Firebase
I have a requirement where a user can enter their phone number, a username and a password in
Vue-Laravel file formdata always empty
I'm trying to upload a file to a laravel backend via axios. when a user clicks on the file input i get the file object, append it to the
Using CoreData as dynamic Widget Intents in SwiftUI
I've followed along the apple developer code-along videos
Getting bad request error in FedEx OAuth Swift
I am trying to authorised fedex token but getting 400 error. fedex developer link :
Change lazy button opacity from outside of the class
I need to change alpha value of the button in another class. but the problem is button created as "lazy var" so i can not change that
There is no argument given that corresponds to the required formal parameter - c#
I want to get datetime.now and pass like a parameter for api point from this method: string generaterequesturidata(string endpoint,
Swift 5: I have a problem when I try to instantiate a viewmodel for testing
I'm trying to instantiate my viewmodel for testing, in this case i don't need its parameters, but as it asks me to add them, when i try i get an
Displaying the Image From API using DidSelectRow
I am trying to send the data in including image from one view controller to another . the data is fetching from api . the data is successfully
Image conversion from string data type to Image
I am trying to display the image from table view cell to another controller. i am using table view cell to display the image, title and other
Ad
Data compressed in Swift 5 on macOS/iPhone cannot be decompressed by anything else
I am trying to decompress some json (representing a codable type) that was compressed on an iphone, using the nsdata
Swift get data from service in view model
Hi i'm a beginner at swift and i'm using a viewmodel and i'm trying to fetch data from an api i've setup locally as follows; // //
Ad
Blog Categories
Ad