问题
I am updating an existing app from another developer to support 64 bit devices as Apple is going to make it compulsory.
I added :- Architectures : $(ARCHS_STANDARD) valid Arch : armv7 arm64
Problem :- The slot items after stopping the rotation disappear. this happens only on i5,i6 n i6+ devices only. (Working perfect on i4s n iPad(s))
Failed Attempts: 1) Converted all float values to CGFloat for if the float might be loosing values. 2) tried to use xib of i4 in place of i5s
P.S: This question might be a duplicate of "Images not showing up when architecture set to 64 bit"
But, the above solution is so much code specific to the guy's personal problem. So I am asking for a more generic solution.
回答1:
Update the Data structure used in code according to 64 bits for example replace int type with NSInteger, Float with CGFloat, etc.
I also faced similar issue, hence solved this issue by updating data type used for 64 bits as range differs w.r.t to 32 bits.
Find solution in below link, by update the iCarousel third party library.
link: https://github.com/nicklockwood/iCarousel
回答2:
ipad4 is armv7, iphone6 need armv7s so you might need to add armv7s
来源:https://stackoverflow.com/questions/26925620/images-disappearing-after-setting-valid-architecture-to-arm64