I have existing project created a year ago. After AppStore's 64 bit requirement announcements, I had to include arm64
architecture into my project
But after adding arm64
into appTarget -> Build Settings -> Valid Architectures
all the setImage: forState
methods of all UIButton
objects stopped working, while setBackGroundImage: forState
is working normally.
UIButton *button = [[UIButton alloc] initWithFrame:CGRectMake(10, 10, 20, 20)];
[button setImage:image forState:UIControlStateNormal];
To test this oddity I created new project and created UIButton
and used setImage: forState
method, everything is working as expected.
If I remove back arm64
architecture, every thing is ok with my project.
I don't know what I did wrong with my project.