Comments (14)
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.
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.
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.
👍
from nappui.
Hi Mads,
Is this something to consider?
Cheers,
Wienke
from nappui.
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.
@viezel i did that last week and worked for me.
from nappui.
great then its "just" working the issues out? any of you guys care to do a PR ?
from nappui.
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.
No, sorry, I do JS, not ObjC.
from nappui.
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.
Have a look here. If they are here, they are included in the project.
from nappui.
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.
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)
- webview redirects to white screen when the url/site contains javascript HOT 4
- Label+Extend Out of bounds exception
- [Request] Shadow Inset
- SearchBar doesn't appear to be working with specific properties HOT 3
- [Q] Styling controls... HOT 1
- simultanious events break when view has fixed position.
- Local html WebView events not firing with Titanium 3.2.3 HOT 9
- Setting html property of WebView crashes app HOT 2
- Set customBackgroundColor has no effect
- App in 3.3.0 fails with "undefined symbols"
- Module unsupported by Titanium sdk 3.4.0 HOT 2
- 64-bit support? HOT 1
- Improper Name Used for the Toolbar tintColor Setter HOT 2
- View Shadow Breaks borderRadius
- hintTextColor overwrites value with "text" HOT 3
- Add parameter to popToRoot for animation control
- Custom header support breaks iframes HOT 1
- _filterDataInRange error
- popToRoot undefined is not a function HOT 2
- build failed
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nappui.