Hi , I study in University of Texas at Austin , and this my first time in this u
ID: 3812922 • Letter: H
Question
Hi , I study in University of Texas at Austin , and this my first time in this useful websites
my problem I dont know how to start in this assignment (IOS Swift3 Xcode 8) i want the solution wrote it in code that i can dawnload and follow it and with command explain what you doing exactly in details hope you can help me ASAP THANK YOU Assignment about Scroll Image
1. CreateniceSplitViewinterfacethatworksonbothiPhoneandIPadwhichgivesthe user an ability to enter an Image address that it will be displayed in the detail view.
2. While the user wait for the image to be loaded make sure to use activity indicator.
3. Don’t not load the images using the main thread queue you should use background thread.
Output with print every time scroll the position of the content of the current scrollview.
Load the image with high scale and move to a certain position automatically with animation at startup.
Taping on the status bar (upper clock or radio strength indicator bar) will scroll to the top.
Make sure your scrollview zoom ability is implemented.
8. When Running on the iPhone it should start on the master view rather than detail view.
Explanation / Answer
sbit DB7 = P1^7;
sbit DB6 = P1^6;
sbit DB5 = P1^5;
sbit DB4 = P1^4;
sbit RS = P1^3;
sbit E = P1^2;
sbit clear = P2^4;
sbit souse = P2^5;
sbit left = P2^6;
sbit right = P2^7;
void returnHome(void);
void entryModeSet(bit id, bit s);
void showOnOffControl(bit display, bit cursor, bit blinking);
void cursorOrDisplayShift(bit sc, bit rl);
void functionSet(void);
void setDdRamAddress(char address);
void sendChar(char c);
void sendString(char* str);
bit getBit(char c, char bitNumber);
void delay(void);
void main(void) {
functionSet();
entryModeSet(1, 0); // increment and no shift
displayOnOffControl(1, 1, 1); // show on, pointer on and blinking on
sendString("EdSim51 LCD Module Simulation");
setDdRamAddress(0x40); // set address to start out of second line
sendString("Based on Hitachi HD44780");
// The program will be controlled via a number of the switches on port a pair of.
// If switch five is closed the pointer returns home (address 0).
// Otherwise, switches six and seven ar scan - if each switches ar open or each switches
// ar closed, the show doesn't shift.
// If switch seven is closed, unceasingly shift left.
// If switch six is closed, unceasingly shift right.
whereas (1)
else zero && right == 1) {
cursorOrDisplayShift(1, 0); // shift show left
}
else if (left == one && right == 0) {
cursorOrDisplayShift(1, 1); // shift show right
}
}
}
}
// LCD Module directions -------------------------------------------
// to grasp why the pins ar being set to the actual values within the functions
// below, see the instruction set.
// A full rationalization of the LCD Module: HD44780.pdf
void returnHome(void)
void entryModeSet(bit id, bit s)
void showOnOffControl(bit display, bit cursor, bit blinking)
void cursorOrDisplayShift(bit sc, bit rl)
void functionSet(void) operate set is really sent double. Why? See 4-bit operation
// on pages thirty-nine and forty two of HD44780.pdf.
DB7 = 0;
DB6 = 0;
DB5 = 1;
DB4 = 0;
RS = 0;
E = 1;
E = 0;
delay();
E = 1;
E = 0;
DB7 = 1;
E = 1;
E = 0;
delay();
}
void setDdRamAddress(char address)
void sendChar(char c)
// -- finish of LCD Module directions
// --------------------------------------------------------------------
void sendString(char* str) {
int index = 0;
whereas (str[index] != 0)
}
bit getBit(char c, char bitNumber) come back (c >> bitNumber) & 1;
}
void delay(void)