As scanny states in his answer
There is a lot of literature out there on this topic.
To expand some on that answer.
Wood is always in a constant state of flux when it comes to moisture. A general rule of thumb for green wood is to sticker it for a year per inch of thickness which helps it maintain is shape. That is a loose rule that can be quickened with other means like kilns and such.
When working with solid wood (not green) it a good idea to leave it in the environment it is going to live in for at least several months to acclimatize. Doing so will greatly reduce the rate of change. Be prepared to have to have to prepare the wood again because of warping and understand though that it is in a state of constant change that can never truly stop.
How wood shinks and expands is a science in itself. For a simple introduction look at the following image that shows where the greater change, in general occurs, in lumber per the grain direction.
You can also get a basic idea of the types of warping to expect based on the cut of lumber as well.
Both images from workshopcompanion.com
Forcing the wood to stay in place with hardware can work but could easily exacerbate the shrinking / expansion issues and force it to split.
This is why you see things like floating breadboard solid wood tabletops. Those might be worth looking at for future projects. You will see plenty of plans that don't do that. Some of them might last forever without issues. However, there are plenty of stories of people that make great projects just to have them fall apart season later.