pmusolino / PMAlertController

PMAlertController is a great and customizable alert that can substitute UIAlertController
MIT License
2.53k stars 187 forks source link

Image not centered #36

Closed antonioreyna closed 7 years ago

antonioreyna commented 7 years ago

Hi, I am experienced an issue.

Now when i load the view the image is to the right not centered as before, the text is correct but not the imagen, what could be wrong?.

thanks

pmusolino commented 7 years ago

Hi @antonioreyna, what version of PMAlertController do you use?

-Paolo

antonioreyna commented 7 years ago
pmusolino commented 7 years ago

The problem has been solved after the 1.0.5. Check it out one of the new versions: https://github.com/Codeido/PMAlertController/releases

antonioreyna commented 7 years ago

thanks let me check, now im with Using PMAlertController (1.1.0) how can i get version 2 with cocoapods?

pmusolino commented 7 years ago

Show me your podfile ;)

-Paolo

antonioreyna commented 7 years ago

i have this:

source 'https://github.com/CocoaPods/Specs.git'

# Uncomment this line to define a global platform for your project
platform :ios, '10.0'
# Uncomment this line if you're using Swift
use_frameworks!

def shared_all_pods

    pod 'Alamofire', '~> 4.0'
    pod 'AlamofireObjectMapper', git: 'https://github.com/tristanhimmelman/AlamofireObjectMapper.git', branch: 'master'
    pod 'SwiftyUserDefaults'#, git: 'https://github.com/radex/SwiftyUserDefaults.git', tag: '3.0.0'

end

def shared_ios_pods

    pod 'SwiftString', '~> 0.5'
    pod 'KeychainSwift', '~> 6.0'
    pod 'JWTDecode', '~> 2.0'

end

target 'MyProject' do

    shared_all_pods
    shared_ios_pods

    pod 'BWWalkthrough', git: 'https://github.com/willeeklund/BWWalkthrough.git', branch: 'master'
    pod 'SideMenuController', git: 'https://github.com/teodorpatras/SideMenuController.git', branch: "master"
    pod 'WWCalendarTimeSelector'
    #pod 'WWCalendarTimeSelector', git: 'https://github.com/Artimuss/WWCalendarTimeSelector.git', branch: "swift3"
    pod 'AlamofireNetworkActivityIndicator', '~> 2.0'
    pod 'RoundedViews', git: 'https://github.com/KogiMobileSAS/RoundedViews.git', branch: 'swift3'
    pod 'SwiftLocation', git: 'https://github.com/malcommac/SwiftLocation.git', branch: 'master'
    pod 'PopupController', '~> 0.1'
    #pod 'PMAlertController', git: 'https://github.com/Codeido/PMAlertController.git', branch: 'swift3'
    pod 'PMAlertController'
    pod 'SwiftDate', '~> 4.0'
    #pod 'SwiftDate', git: 'https://github.com/malcommac/SwiftDate.git', branch: 'feature/swift-3.0'
    pod 'TextFieldEffects', git: 'https://github.com/raulriera/TextFieldEffects.git', tag: '1.3.0'
    pod 'FluentConstraints'
    pod 'QRCode', git: 'https://github.com/aschuch/QRCode.git', branch: 'master'
    pod 'SwiftyTimer', git: 'https://github.com/radex/SwiftyTimer.git', branch: 'swift3'
    pod 'PayPal-iOS-SDK'
    pod 'SwiftValidator', :git => 'https://github.com/jpotts18/SwiftValidator.git', :branch => 'swift3-dave'
    pod 'RSBarcodes_Swift', git: 'https://github.com/yeahdongcn/RSBarcodes_Swift.git', branch: 'Swift-3.0'
    pod 'Google/Analytics'
    pod 'GoogleIDFASupport'
    pod 'EZYGradientView', '~> 1.5'
    pod 'SwiftyHex', '~> 1.1'
    pod 'SwiftDevice', '0.3.0'
    pod 'FacebookCore'
    pod 'FacebookLogin'
    pod 'FacebookShare'

end

target 'shareContent' do

    shared_all_pods
    shared_ios_pods

end

target 'watchExtension' do

platform :watchos, '2.0'

    shared_all_pods

end

post_install do |installer|
  installer.pods_project.targets.each do |target|
    if target.name == 'MyProject'
        target.build_configurations.each do |config|
            config.build_settings['ENABLE_BITCODE'] = 'NO'
            #config.build_settings['SWIFT_VERSION'] = '3.0'
        end
    end
  end
end

and i ran pod install

pmusolino commented 7 years ago

OK, delete this line (not used):

#pod 'PMAlertController', git: 'https://github.com/Codeido/PMAlertController.git', branch: 'swift3'

and go with pod update.

-Paolo

antonioreyna commented 7 years ago

got it!!! thank you Paolo.

Installing PMAlertController 2.1.0 (was 1.1.0)