Hivex33 open jobs

iOS Developer

MobilePosted 5 weeks agovia Himalayas, a remote job board

Work type
RemoteOpen worldwide
Experience
4+ years
Pay
Not listed
Posted
5 weeks ago
Before you apply: make your resume fit this job

Skills it mentions

Add your skills to see which ones you have.

Interview questions for this job6 with answers below, on iOS, Swift and REST APIs

About the job

We are looking for a talented and experienced iOS Developer to join our innovative team and contribute to the development of state-of-the-art mobile applications that reflect our dedication to quality and excellence.

Requirements:

  • 4+ years of experience as an iOS Developer.
  • Strong proficiency in Swift and Objective-C.
  • Experience with iOS frameworks such as Core Data, Core Animation, and Core Graphics.
  • Familiarity with RESTful APIs to connect iOS applications to back-end services.
  • Experience with offline storage, threading, and performance tuning.
  • Proficient understanding of code versioning tools (e.g., Git).
  • Familiarity with push notifications, APIs, and cloud messaging.
  • Advanced English level.
  • Excellent problem-solving and communication skills.
  • Ability to work both independently and collaboratively in a team environment.

What we offer:

  • Remote job with the freedom to work from anywhere in the world.
  • Flexible work schedule tailored to your life and work needs.
  • Competitive and timely salary.
  • Opportunities for professional growth and development.
  • The chance to gain experience in various fields and participate in exciting projects.
  • Your ideas and initiatives are always welcome and valued.

Originally posted on Himalayas

1 more opening for this job

Hivex posts this job once per place or skill set. Pick the one that fits you.

Interested?iOS Developer at Hivex

Apply on Himalayas (opens in a new tab)

The job ad ends here

Interview questions for this job6 with answers, on iOS, Swift and REST APIs

Interview questions for this job

For the skills the ad mentions: iOS, Swift and REST APIs.

213 questions
  • Determine the value of “x” in the Swift code belowiOS

    Task:

    var a1 = [1, 2, 3, 4, 5]
    var a2 = a1
    a2.append(6)
    var x = a1.count
    

    Solution: In Swift, arrays are implemented as structs, making them value types rather than reference types (i.e., classes). When a value type is assigned to a variable as an argument to a function or method, a copy is created and assigned or passed. As a result, the value of “x” or the count of array “a1” remains equal to 5 while the count of array “a2” is equal to 6, appending the integer “6” onto a copy of the array “a1.” The arrays appear in the box below.

    a1 = [1, 2, 3, 4, 5]  
    a2 = [1, 2, 3, 4, 5, 6]  
    

    From Awesome iOS Interview (MIT)

  • Why create "Implicitly Unwrapped Optionals", since that implies you know there's a value?Swift

    Before I can describe the use cases for Implicitly Unwrapped Optionals, you should already understand what Optionals and Implicitly Unwrapped Optionals are in Swift. If you do not, I recommend you first read my article on optionals

    When To Use An Implicitly Unwrapped Optional

    There are two main reasons that one would create an Implicitly Unwrapped Optional. All have to do with defining a variable that will never be accessed when nil because otherwise, the Swift compiler will always force you to explicitly unwrap an Optional.

    1. A Constant That Cannot Be Defined During Initialization

    Every member constant must have a value by the time initialization is complete. Sometimes, a constant cannot be initialized with its correct value during initialization, but it can still be guaranteed to have a value before being accessed.

    Using an Optional variable gets around this issue because an Optional is automatically initialized with nil and the value it will eventually contain will still be immutable. However, it can be a pain to be constantly unwrapping a variable that you know for sure is not nil. Implicitly Unwrapped Optionals achieve the same benefits as an Optional with the added benefit that one does not have to explicitly unwrap it everywhere.

    A great example of this is when a member variable cannot be initialized in a UIView subclass until the view is loaded:

    class MyView: UIView {
        @IBOutlet var button: UIButton!
        var buttonOriginalWidth: CGFloat!
        override func awakeFromNib() {
            self.buttonOriginalWidth = self.button.frame.size.width
        }
    }
    

    Here, you cannot calculate the original width of the button until the view loads, but you know that awakeFromNib will be called before any other method on the view (other than initialization). Instead of forcing the value to be explicitly unwrapped pointlessly all over your class, you can declare it as an Implicitly Unwrapped Optional.

    2. When Your App Cannot Recover From a Variable Being nil

    This should be extremely rare, but if your app can not continue to run if a variable is nil when accessed, it would be a waste of time to bother testing it for nil. Normally if you have a condition that must absolutely be true for your app to continue running, you would use an assert. An Implicitly Unwrapped Optional has an assert for nil built right into it. Even then, it is often good to unwrap the optional and use a more descriptive assert if it is nil.

    When Not To Use An Implicitly Unwrapped Optional

    1. Lazily Calculated Member Variables

    Sometimes you have a member variable that should never be nil, but it cannot be set to the correct value during initialization. One solution is to use an Implicitly Unwrapped Optional, but a better way is to use a lazy variable:

    class FileSystemItem {
    }
    class Directory : FileSystemItem {
        lazy var contents : [FileSystemItem] = {
            var loadedContents = [FileSystemItem]()
            // load contents and append to loadedContents
            return loadedContents
        }()
    }
    

    Now, the member variable contents is not initialized until the first time it is accessed. This gives the class a chance to get into the correct state before calculating the initial value.

    Note: This may seem to contradict #1 from above. However, there is an important distinction to be made. The buttonOriginalWidth above must be set during viewDidLoad to prevent anyone changing the buttons width before the property is accessed.

    2. Everywhere Else

    For the most part, Implicitly Unwrapped Optionals should be avoided because if used mistakenly, your entire app will crash when it is accessed while nil. If you are ever not sure about whether a variable can be nil, always default to using a normal Optional. Unwrapping a variable that is never nil certainly doesn't hurt very much.

    From Stack Overflow: asked by Johnston, answered by drewag (CC BY-SA 3.0)

  • What are possible types of requests for http protocol?REST APIs

    GET

    The GET method requests a representation of the specified resource. Requests using GET should only retrieve data.

    HEAD

    The HEAD method asks for a response identical to that of a GET request, but without the response body.

    POST

    The POST method is used to submit an entity to the specified resource, often causing a change in state or side effects on the server.

    PUT

    The PUT method replaces all current representations of the target resource with the request payload.

    DELETE

    The DELETE method deletes the specified resource.

    CONNECT

    The CONNECT method establishes a tunnel to the server identified by the target resource.

    OPTIONS

    The OPTIONS method is used to describe the communication options for the target resource.

    TRACE

    The TRACE method performs a message loop-back test along the path to the target resource.

    PATCH

    The PATCH method is used to apply partial modifications to a resource. Links

    • https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods

    From Java interview (MIT)

  • Explain: PolymorphismiOS

    The word polymorphism means having many forms. Typically, polymorphism occurs when there is a hierarchy of classes and they are related by inheritance.

    Objective-C polymorphism means that a call to a member function will cause a different function to be executed depending on the type of object that invokes the function.

    Consider the example, we have a class Shape that provides the basic interface for all the shapes. Square and Rectangle are derived from the base class Shape.

    From Awesome iOS Interview (MIT)

  • What does an exclamation mark mean in the Swift language?Swift

    What does it mean to "unwrap the instance"? Why is it necessary?

    As far as I can work out (this is very new to me, too)...

    The term "wrapped" implies we should think of an Optional variable as a present, wrapped in shiny paper, which might (sadly!) be empty.

    When "wrapped", the value of an Optional variable is an enum with two possible values (a little like a Boolean). This enum describes whether the variable holds a value (Some(T)), or not (None).

    If there is a value, this can be obtained by "unwrapping" the variable (obtaining the T from Some(T)).

    How is john!.apartment = number73 different from john.apartment = number73? (Paraphrased)

    If you write the name of an Optional variable (eg text john, without the !), this refers to the "wrapped" enum (Some/None), not the value itself (T). So john isn't an instance of Person, and it doesn't have an apartment member:

    john.apartment
    // 'Person?' does not have a member named 'apartment'
    

    The actual Person value can be unwrapped in various ways:

    • "forced unwrapping": john! (gives the Person value if it exists, runtime error if it is nil)
    • "optional binding": if let p = john { println(p) } (executes the println if the value exists)
    • "optional chaining": john?.learnAboutSwift() (executes this made-up method if the value exists)

    I guess you choose one of these ways to unwrap, depending upon what should happen in the nil case, and how likely that is. This language design forces the nil case to be handled explicitly, which I suppose improves safety over Obj-C (where it is easy to forget to handle the nil case).

    Update:

    The exclamation mark is also used in the syntax for declaring "Implicitly Unwrapped Optionals".

    In the examples so far, the john variable has been declared as var john:Person?, and it is an Optional. If you want the actual value of that variable, you must unwrap it, using one of the three methods above.

    If it were declared as var john:Person! instead, the variable would be an Implicitly Unwrapped Optional (see the section with this heading in Apple's book). There is no need to unwrap this kind of variable when accessing the value, and john can be used without additional syntax. But Apple's book says:

    Implicitly unwrapped optionals should not be used when there is a possibility of a variable becoming nil at a later point. Always use a normal optional type if you need to check for a nil value during the lifetime of a variable.

    Update 2:

    The article "Interesting Swift Features" by Mike Ash gives some motivation for optional types. I think it is great, clear writing.

    Update 3:

    Another useful article about the implicitly unwrapped optional use for the exclamation mark: "Swift and the Last Mile" by Chris Adamson. The article explains that this is a pragmatic measure by Apple used to declare the types used by their Objective-C frameworks which might contain nil. Declaring a type as optional (using ?) or implicitly unwrapped (using !) is "a tradeoff between safety and convenience". In the examples given in the article, Apple have chosen to declare the types as implicitly unwrapped, making the calling code more convenient, but less safe.

    Perhaps Apple might comb through their frameworks in the future, removing the uncertainty of implicitly unwrapped ("probably never nil") parameters and replacing them with optional ("certainly could be nil in particular [hopefully, documented!] circumstances") or standard non-optional ("is never nil") declarations, based on the exact behaviour of their Objective-C code.

    From Stack Overflow: asked by Troy, answered by Ashley (CC BY-SA 3.0)

  • What are your main strengths?Behavioural

    The strengths employers look for will depend on the job role. They may ask you questions like:

    • what are your main strengths?
    • why should we hire you?

    You can use specific examples to highlight your strengths, such as:

    • communication - to show you get on with others
    • problem solving - to show that you can find solutions
    • enthusiasm - to show that you have a positive attitude to work
    • flexibility - to show that you can adapt to different ways of working

    Plan your answers around 2 or 3 examples that are relevant to the job. You can back these up with qualifications or training you've done.

    From National Careers Service: interview advice (Open Government Licence v3.0)

More jobs like this

Remote Mobile developer jobs (10)