Giter Site home page Giter Site logo

Comments (12)

allaire avatar allaire commented on July 18, 2024

@skywinder Any updates?

from actionsheetpicker-3.0.

skywinder avatar skywinder commented on July 18, 2024

And can't reproduce it.
I don't see any warnings in Xcode.
I will try to investigate this issue later.

from actionsheetpicker-3.0.

skywinder avatar skywinder commented on July 18, 2024

It seems the something wrong with warnings flags. I can't reproduce it.
Until it is not fixed, just ignore it.
If someone can fix it - I will be glad to merge it.

from actionsheetpicker-3.0.

LeoSnek avatar LeoSnek commented on July 18, 2024

I get the same warnings:

AbstractActionSheetPicker.m:369:45: 'sizeWithFont:' is deprecated: first deprecated in iOS 7.0 - Use -sizeWithAttributes:
AbstractActionSheetPicker.m:476:20: 'contentSizeForViewInPopover' is deprecated: first deprecated in iOS 7.0 - Use UIViewController.preferredContentSize instead.
ActionSheetStringPicker.m:100:82: Implicit conversion loses integer precision: 'NSInteger' (aka 'long') to 'int'

The first two only appear if the deployment target is set to at least 7.0.

from actionsheetpicker-3.0.

funnel20 avatar funnel20 commented on July 18, 2024

I can confirm the warnings, I have also set the minimum deployment target to iOS 7.0.

The if-else statement to use sizeWithFont or sizeWithAttributes is based on:

if ( NSFoundationVersionNumber > NSFoundationVersionNumber_iOS_6_1)

sizeWithAttributes is available since iOS 7.0. And so is NSFoundationVersionNumber_iOS_6_1.

What will happen if this code runs on iOS 6? Will it crash on NSFoundationVersionNumber_iOS_6_1?

from actionsheetpicker-3.0.

skywinder avatar skywinder commented on July 18, 2024

@funnel20 No. This project fully compatible with iOS 6-7-8. And this check is needed to support all of them at once. Just ignore these warnings.

I don't know where is the problem.
I fix all issues. I add pragmas to mute warrnings.
I run Xcode analyze and it says me "no issues".
Probably something wrong with my settings of Xcode, but I have no idea how to fix it.

But I assure you, that it's nothing wrong with this code.

from actionsheetpicker-3.0.

skywinder avatar skywinder commented on July 18, 2024

Ok, Guys. I figure out, what cause ignoring this warnings in my IDE:
I was work with iOS deployment target 6.1. And thats why I didn't see any warnings.
Now it fixed. Thanks for patience.
Please, update to 1.1.6

from actionsheetpicker-3.0.

funnel20 avatar funnel20 commented on July 18, 2024

Thanks for the fix, warnings are gone.

from actionsheetpicker-3.0.

funnel20 avatar funnel20 commented on July 18, 2024

Hi Petr,

Thanks for fixing this.

Are you planning to tag a new stable release?
The last release is at 1.0.10.
I tried the master version a few days ago, but that didn't show the Sheet at all.
1.0.10 works fine, therefor I switched to it.

With kind regards,

Martijn

On 27 Aug 2014, at 10:41 PM, Petr Korolev [email protected] wrote:

Ok, Guys. I figure out, what cause ignoring this warnings in my IDE:
I was work with iOS deployment target 6.1. And thats why I didn't see any warnings.
Now it fixed. Thanks for patience.


Reply to this email directly or view it on GitHub.

from actionsheetpicker-3.0.

skywinder avatar skywinder commented on July 18, 2024

@funnel20 sorry for confusion with versions, especially with 1.0.x.
I do not remember which of 1.0.x versions is stable. May fault.
But I highly recommend to you update to 1.1.5. Now it most stable version.

from actionsheetpicker-3.0.

funnel20 avatar funnel20 commented on July 18, 2024

@skywinder I first updated to version 1.1.5, that worked fine.
Now I have updated to 1.1.8 that solved the 3 compiler warnings from this issue and runs fine.
Thanks

from actionsheetpicker-3.0.

skywinder avatar skywinder commented on July 18, 2024

You're welcome.
I'll try to not commit in 1.1.x some any dangerous fetaures, only bugfixes.
Stay tuned!

from actionsheetpicker-3.0.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.