GithubHelp home page GithubHelp logo

Include Pegli's TIUIEx about nappui HOT 14 OPEN

wienke avatar wienke commented on June 14, 2024
Include Pegli's TIUIEx

from nappui.

Comments (14)

viezel avatar viezel commented on June 14, 2024

hi, have you testet this with iOS7?
this part seems a bit hacky: https://github.com/pegli/TiUIEx/blob/master/mobile/iphone/Classes/ComObscureTiUIExImageView.m#L53

from nappui.

wienke avatar wienke commented on June 14, 2024

Didn't try it yet but will do later this week. I will also see if I can
find a better solution as I think cropping should be a standard feature
within appcelerator.

2013/9/10 Mads Møller [email protected]

hi, have you testet this with iOS7?
this part seems a bit hacky:
https://github.com/pegli/TiUIEx/blob/master/mobile/iphone/Classes/ComObscureTiUIExImageView.m#L53


Reply to this email directly or view it on GitHubhttps://github.com//issues/16#issuecomment-24137572
.

from nappui.

wienke avatar wienke commented on June 14, 2024

I tried to copy the code from https://github.com/pegli/TiUIEx/blob/master/mobile/iphone/Classes/ComObscureTiUIExImageView.m into the structure of NappUI in my fork (https://github.com/wienke/NappUI/blob/master/Classes/TiUIImageView%2BExtend.m) .

It compiles and runs but it seems if all images just keep their aspectfit content mode.

If I change the default contentmode in Titanium SDK (https://github.com/appcelerator/titanium_mobile/blob/master/iphone/Classes/TiUIImageView.m#L257) it works, also for iOS7.

I think I am close...

from nappui.

sindresorhus avatar sindresorhus commented on June 14, 2024

👍

from nappui.

wienke avatar wienke commented on June 14, 2024

Hi Mads,

Is this something to consider?

Cheers,
Wienke

from nappui.

viezel avatar viezel commented on June 14, 2024

sure - it does sound interesting.
have you tried to fork Pegli repo and change the sdk to 3.1.3.GA and see if it still works? There are quite some change between these two.

from nappui.

sindresorhus avatar sindresorhus commented on June 14, 2024

@viezel i did that last week and worked for me.

from nappui.

viezel avatar viezel commented on June 14, 2024

great then its "just" working the issues out? any of you guys care to do a PR ?

from nappui.

wienke avatar wienke commented on June 14, 2024

Would love to do this but my skills are not sufficient. Sindre: Are you up
for this?

2013/11/4 Mads Møller [email protected]

great then its "just" working the issues out? any of you guys care to do a
PR ?


Reply to this email directly or view it on GitHubhttps://github.com//issues/16#issuecomment-27668700
.

from nappui.

sindresorhus avatar sindresorhus commented on June 14, 2024

No, sorry, I do JS, not ObjC.

from nappui.

wienke avatar wienke commented on June 14, 2024

This friday a friend of mine who knows Objective-C will have a look at it.

@Mads: one question. How to can I make sure that the ImageView header and
main file are included in the project?

2013/11/6 Sindre Sorhus [email protected]

No, sorry, I do JS, not ObjC.


Reply to this email directly or view it on GitHubhttps://github.com//issues/16#issuecomment-27873636
.

from nappui.

viezel avatar viezel commented on June 14, 2024

screen shot 2013-11-13 at 17 42 32
Have a look here. If they are here, they are included in the project.

from nappui.

wienke avatar wienke commented on June 14, 2024

I think I am almost there. I included the files but when I try to build it
gives me this error:

/Users/wienke/Library/Application
Support/Titanium/mobilesdk/osx/3.2.0.v20131110134044/iphone/include/ImageLoader.h:9:9:
'ASIHTTPRequest.h' file not found

I included the ImageView in both metadata.json, dk.napp.ui.js and
dk_napp_ui_js.

When I compile it with build.py it outputs:

The following build commands failed:
CompileC
build/nappui.build/Release-iphoneos/nappui.build/Objects-normal/armv7/TiUIImageView+Extended.o
Classes/TiUIImageView+Extended.m normal armv7 objective-c
com.apple.compilers.llvm.clang.1_0.compiler
CompileC
build/nappui.build/Release-iphoneos/nappui.build/Objects-normal/armv7s/TiUIImageView+Extended.o
Classes/TiUIImageView+Extended.m normal armv7s objective-c
com.apple.compilers.llvm.clang.1_0.compiler

Any ideas why it breaks on ImageLoader.h? Do I need to include more
frameworks in the module.xconfig?

2013/11/13 Mads Møller [email protected]

[image: screen shot 2013-11-13 at 17 42 32]https://f.cloud.github.com/assets/312065/1533239/a1e9291a-4c82-11e3-8d2f-5e882b3f3b92.png
Have a look here. If they are here, they are included in the project.


Reply to this email directly or view it on GitHubhttps://github.com//issues/16#issuecomment-28410692
.

from nappui.

dezinezync avatar dezinezync commented on June 14, 2024

To fix the above, modify your titanium.xcconfig file to include the following:

TITANIUM_SDK_VERSION = 3.2.0.v20131110134044


// 
// THESE SHOULD BE OK GENERALLY AS-IS
//
TITANIUM_SDK = ~/Library/Application Support/Titanium/mobilesdk/osx/$(TITANIUM_SDK_VERSION)
TITANIUM_BASE_SDK = "$(TITANIUM_SDK)/iphone/include"
TITANIUM_BASE_SDK2 = "$(TITANIUM_SDK)/iphone/include/TiCore"
TITANIUM_BASE_SDK3 = "$(TITANIUM_SDK)/iphone/include/ASI"
HEADER_SEARCH_PATHS= $(TITANIUM_BASE_SDK) $(TITANIUM_BASE_SDK2) $(TITANIUM_BASE_SDK3)

Then try building, if it fails, try deleting the build folder, and build again. It should work.

I ran into this issue just yesterday, however, couldn't get [ImageLoader sharedLoader] to work. Do let me know if it works for you.

from nappui.

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.