The measurement precision for two incompatible observables in a typical quantum system can be improved by the aid of one particle as a quantum memory. In this work, we study the entropic uncertainty relation in the presence of quantum memory (EUR-QM) and dense coding capacity (DCC) for arbitrary two-qubit X-states, and then we obtain an explicit relationship between the lower bound of the uncertainty and DCC. As an example, we examine the thermal EUR-QM as well as DCC in two kinds of two-qubit spin squeezing models (one-axis twisting model and two-axis counter-twisting model) under an external magnetic field. In the following, we relate EUR-QM to DCC and show analytically that there is an anti-correlated relation between them, and especially in the ground state. Our results show that for both the models, the entropic uncertainty and its bound can be decreased by reinforcing the spin squeezing parameters or decreasing the temperature of the system. Notably, we reveal that the valid dense coding cannot carry out in the one-axis twisting model, nevertheless, if we properly choose the Hamiltonian parameters, the two-axis counter-twisting model not only carries out the valid dense coding but also the optimal dense coding surely can be achieved. Thereby, our observations might offer new insights into quantum measurement precision and the optimal dense coding for the regimes of various solid-state systems.